424
|
1 |
#!/bin/bash
|
391
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
2 |
###set -e
|
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 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
6 |
files=${1:-*/main4}
|
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"
|
391
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 ../../../../../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
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
19 |
cp ../../../../../main_marking4/knight1_test4.scala .
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
20 |
cp ../../../../../main_marking4/knight1_test5.scala .
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
21 |
cp ../../../../../main_marking4/knight2_test6.scala .
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
22 |
cp ../../../../../main_marking4/knight2_test7.scala .
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
23 |
cp ../../../../../main_marking4/knight2_test8.scala .
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
24 |
cp ../../../../../main_marking4/knight3_test9.scala .
|
463
|
25 |
cp ../../../../../main_marking4/knight4_test10.scala .
|
424
|
26 |
./knight_test.sh output
|
|
27 |
rm knight_test.sh
|
|
28 |
rm knight1_test1.scala
|
|
29 |
rm knight1_test2.scala
|
|
30 |
rm knight1_test3a.scala
|
|
31 |
rm knight1_test3b.scala
|
|
32 |
rm knight1_test3c.scala
|
391
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
33 |
rm knight1_test4.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
34 |
rm knight1_test5.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
35 |
rm knight2_test6.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
36 |
rm knight2_test7.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
37 |
rm knight2_test8.scala
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
38 |
rm knight3_test9.scala
|
463
|
39 |
rm knight4_test10.scala
|
391
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
40 |
cd ..
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
41 |
cd ..
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
42 |
done
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
43 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
44 |
|