File tree 3 files changed +22
-16
lines changed
3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ setup_dataset() {
23
23
exit 1
24
24
fi
25
25
elif [ ! -f ./in_small.csv ] && [ " $1 " = " --small" ]; then
26
- echo " Generating small-size inputs"
27
- # FIXME PR: Do we need all of them?
26
+ if [ ! -f ./in_small.csv ]; then
27
+ echo " Generating small-size inputs"
28
+ # FIXME PR: Do we need all of them?
28
29
curl -sf ' http://pac-n4.csail.mit.edu:81/pash_data/small/in_small.csv' > in_small.csv
30
+ fi
29
31
fi
30
32
}
31
33
Original file line number Diff line number Diff line change @@ -14,14 +14,16 @@ if [[ "$1" == "-c" ]]; then
14
14
fi
15
15
16
16
setup_dataset () {
17
- if [ " $# " -eq 1 ] && [ " $1 " = " --small" ]; then
18
- echo " Generating small-size inputs "
19
- # FIXME PR: Do we need all of them?
20
- curl -sf ' http://pac-n4.csail.mit.edu:81/pash_data/small/oneliners.zip ' > oneliners.zip
21
- unzip oneliners.zip
22
- rm -f oneliners.zip
23
- return 0
17
+ if [ " $# " -eq 1 ] && [ " $1 " = " --small" ]; then
18
+ if [ ! -d ./ small ] ; then
19
+ echo " Generating small-size inputs "
20
+ # FIXME PR: Do we need all of them?
21
+ curl -sf ' http://pac-n4.csail.mit.edu:81/pash_data/small/oneliners.zip ' > oneliners.zip
22
+ unzip oneliners.zip
23
+ rm -f oneliners.zip
24
24
fi
25
+ return 0
26
+ fi
25
27
26
28
if [ ! -f ./1M.txt ]; then
27
29
curl -sf ' http://ndr.md/data/dummy/1M.txt' > 1M.txt
Original file line number Diff line number Diff line change 22
22
setup_dataset () {
23
23
# generate small inputs
24
24
if [ " $# " -eq 1 ] && [ " $1 " = " --small" ]; then
25
- echo " Generating small-size inputs"
26
- # FIXME PR: Do we need all of them?
27
- curl -sf ' http://pac-n4.csail.mit.edu:81/pash_data/small/unix50.zip' > unix50.zip
28
- unzip unix50.zip
29
- rm -f unix50.zip
30
- return 0
25
+ if [ ! -d ./small ]; then
26
+ echo " Generating small-size inputs"
27
+ # FIXME PR: Do we need all of them?
28
+ curl -sf ' http://pac-n4.csail.mit.edu:81/pash_data/small/unix50.zip' > unix50.zip
29
+ unzip unix50.zip
30
+ rm -f unix50.zip
31
+ fi
32
+ return 0
31
33
fi
32
-
34
+
33
35
for input in ${inputs[@]}
34
36
do
35
37
if [ ! -f " ${input} .txt" ]; then
You can’t perform that action at this time.
0 commit comments