243
|
1 |
#!/bin/sh
|
|
2 |
###set -e
|
|
3 |
|
|
4 |
trap "exit" INT
|
|
5 |
|
258
|
6 |
files=${1:-assignment20188-*}
|
243
|
7 |
|
|
8 |
for sd in $files; do
|
|
9 |
cd $sd
|
|
10 |
echo $sd
|
|
11 |
touch .
|
258
|
12 |
cp ../../../marking3/knight3_test.sh .
|
|
13 |
cp ../../../marking3/knight_test6.scala .
|
|
14 |
cp ../../../marking3/knight_test7.scala .
|
|
15 |
cp ../../../marking3/knight_test8.scala .
|
|
16 |
cp ../../../marking3/knight_test9.scala .
|
243
|
17 |
./knight3_test.sh output
|
|
18 |
rm knight3_test.sh
|
258
|
19 |
rm knight_test6.scala
|
|
20 |
rm knight_test7.scala
|
|
21 |
rm knight_test8.scala
|
|
22 |
rm knight_test9.scala
|
243
|
23 |
cd ..
|
|
24 |
done
|
|
25 |
|
|
26 |
|