author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 16 Jul 2021 23:34:19 +0100 | |
changeset 394 | 839ad118e467 |
parent 391 | 0930e4555b60 |
permissions | -rwxr-xr-x |
391
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
1 |
#!/bin/sh |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
2 |
###set -e |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
3 |
|
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
4 |
trap "exit" INT |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
5 |
|
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
6 |
files=${1:-*/main4} |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
7 |
|
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
8 |
for sd in $files; do |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
9 |
cd $sd |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
10 |
echo $sd |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
11 |
sleep 5 |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
12 |
touch . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
13 |
cp ../../../../../main_marking4/knight2_test.sh . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
14 |
cp ../../../../../main_marking4/knight1_test4.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
15 |
cp ../../../../../main_marking4/knight1_test5.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
16 |
cp ../../../../../main_marking4/knight2_test6.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
17 |
cp ../../../../../main_marking4/knight2_test7.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
18 |
cp ../../../../../main_marking4/knight2_test8.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
19 |
cp ../../../../../main_marking4/knight3_test9.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
20 |
./knight2_test.sh output |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
21 |
rm knight2_test.sh |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
22 |
rm knight1_test4.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
23 |
rm knight1_test5.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
24 |
rm knight2_test6.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
25 |
rm knight2_test7.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
26 |
rm knight2_test8.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
27 |
rm knight3_test9.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
28 |
cd .. |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
29 |
cd .. |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
30 |
done |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
31 |
|
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
32 |