-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.sh
executable file
·49 lines (34 loc) · 1.02 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/bash
make clean
make -j4
if [ ! -d data ]; then
echo "untarring data..."
tar -xf sample.data.tar.gz
fi
output_dir=output
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
timeout=3600
experiment_dir="$this_dir/experiments"
experiments="sanchis erdos-biogrid large-networks"
#experiments="sanchis large-networks"
echo "Running experiments and writing table output to $output_dir/table.tex"
cd $experiment_dir
rm -rf old.$output_dir
mv $output_dir old.$output_dir
mkdir $output_dir
cat assets/header.document >> $output_dir/table.tex
for experiment_name in $experiments
do
cd $experiment_dir/$experiment_name
./experiment.$experiment_name.sh
cd $experiment_dir/
cat $experiment_dir/$experiment_name/$experiment_name.$timeout/$experiment_name.table.tex >> $output_dir/table.tex
done
cat assets/footer.document >> $output_dir/table.tex
cp $output_dir/table.tex $this_dir/
cd $this_dir
rm table.pdf
pdflatex table
pdflatex table
rm table.aux table.log
echo "Done! Please view table.pdf"