author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 23 Dec 2022 16:52:34 +0000 | |
changeset 456 | d076cb2e0b75 |
parent 424 | daf561a83ba6 |
child 463 | 0315d9983cd0 |
permissions | -rwxr-xr-x |
424 | 1 |
#!/bin/bash |
391
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 |
424 | 9 |
echo -e "\n" |
391
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
10 |
cd $sd |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
11 |
echo $sd |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
12 |
touch . |
424 | 13 |
cp ../../../../../main_marking4/knight_test.sh . |
14 |
cp ../../../../../main_marking4/knight1_test1.scala . |
|
15 |
cp ../../../../../main_marking4/knight1_test2.scala . |
|
16 |
cp ../../../../../main_marking4/knight1_test3a.scala . |
|
17 |
cp ../../../../../main_marking4/knight1_test3b.scala . |
|
18 |
cp ../../../../../main_marking4/knight1_test3c.scala . |
|
391
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
19 |
cp ../../../../../main_marking4/knight1_test4.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
20 |
cp ../../../../../main_marking4/knight1_test5.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
21 |
cp ../../../../../main_marking4/knight2_test6.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
22 |
cp ../../../../../main_marking4/knight2_test7.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
23 |
cp ../../../../../main_marking4/knight2_test8.scala . |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
24 |
cp ../../../../../main_marking4/knight3_test9.scala . |
424 | 25 |
./knight_test.sh output |
26 |
rm knight_test.sh |
|
27 |
rm knight1_test1.scala |
|
28 |
rm knight1_test2.scala |
|
29 |
rm knight1_test3a.scala |
|
30 |
rm knight1_test3b.scala |
|
31 |
rm knight1_test3c.scala |
|
391
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
32 |
rm knight1_test4.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
33 |
rm knight1_test5.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
34 |
rm knight2_test6.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
35 |
rm knight2_test7.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
36 |
rm knight2_test8.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
37 |
rm knight3_test9.scala |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
38 |
cd .. |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
39 |
cd .. |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
40 |
done |
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
41 |
|
0930e4555b60
added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
42 |