#!/bin/sh

if [ $# -eq 0 ]  
 then
    echo "$0 top-dir"
    exit 1
fi

echo "=== app-bench $1 ==="
cd $1

echo "=== git clone ==="
# time -p git clone git@g.csail.mit.edu:fscq
time -p git clone ~/fscq

echo "=== compile xv6 ==="
cd fscq/xv6
time -p make

echo "=== compile lfs bench ==="
cd ../bench/LFStest
time -p make

echo "=== run lfs large ==="
./largefile -f 1 -i 1 $1

echo "=== cleanup ==="

#cd $1
#time -p rm -rf *

#!/bin/sh

if [ $# -ne 2 ]  
 then
    echo "$0 fscq-repo top-dir"
    exit 1
fi

echo "=== app-bench $1 $2 ==="
cd $2

echo "=== git clone ==="
time -p git clone $1

echo "=== compile xv6 ==="
cd fscq/xv6
time -p make

echo "=== compile lfs bench ==="
cd ../bench/LFStest
time -p make

echo "=== run lfs large ==="
./largefile -f 1 -i 1 $2

echo "=== cleanup ==="

cd $2
time -p rm -rf fscq/*

Update script to take fscq-repo as an argument. xv6 works now when specifying a pathname to the repo, instead of url.
Update script to take fscq-repo as an argument.  xv6 works
now when specifying a pathname to the repo, instead of url.
