382
|
1 |
#!/bin/bash
|
|
2 |
set -euo pipefail
|
373
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
3 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
4 |
trap "exit" INT
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
5 |
|
424
|
6 |
files=${1:-*/core1}
|
373
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
7 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
8 |
for sd in $files; do
|
424
|
9 |
echo -e "\n"
|
373
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
10 |
cd $sd
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
11 |
echo $sd
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
12 |
touch .
|
424
|
13 |
cp ../../../../../core_marking1/collatz_test.sh .
|
|
14 |
cp ../../../../../core_marking1/collatz_test1.scala .
|
|
15 |
cp ../../../../../core_marking1/collatz_test2.scala .
|
|
16 |
cp ../../../../../core_marking1/collatz_test3.scala .
|
374
|
17 |
./collatz_test.sh output
|
373
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
18 |
rm collatz_test.sh
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
19 |
rm collatz_test1.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
20 |
rm collatz_test2.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
21 |
rm collatz_test3.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
22 |
cd ..
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
23 |
cd ..
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
24 |
done
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
25 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
26 |
|