162
|
1 |
#!/bin/sh
|
|
2 |
###set -e
|
|
3 |
|
|
4 |
trap "exit" INT
|
|
5 |
|
331
|
6 |
files=${1:-assignment2019scala-*/Part7}
|
162
|
7 |
|
|
8 |
for sd in $files; do
|
|
9 |
cd $sd
|
|
10 |
echo $sd
|
|
11 |
touch .
|
331
|
12 |
cp ../../../../../marking2/danube_test.sh .
|
|
13 |
cp ../../../../../marking2/danube_test1.scala .
|
|
14 |
cp ../../../../../marking2/danube_test2.scala .
|
|
15 |
cp ../../../../../marking2/danube_test3.scala .
|
|
16 |
cp ../../../../../marking2/danube_test4.scala .
|
|
17 |
cp ../../../../../marking2/danube_test5.scala .
|
|
18 |
cp ../../../../../marking2/danube_test6.scala .
|
|
19 |
cp ../../../../../marking2/movies.csv .
|
|
20 |
cp ../../../../../marking2/ratings.csv .
|
|
21 |
./danube_test.sh output
|
332
|
22 |
rm danube_test.sh
|
331
|
23 |
rm danube_test1.scala
|
|
24 |
rm danube_test2.scala
|
260
|
25 |
rm danube_test3.scala
|
|
26 |
rm danube_test4.scala
|
|
27 |
rm danube_test5.scala
|
|
28 |
rm danube_test6.scala
|
228
|
29 |
rm ratings.csv
|
|
30 |
rm movies.csv
|
162
|
31 |
cd ..
|
331
|
32 |
cd ..
|
162
|
33 |
done
|
|
34 |
|
|
35 |
|