| 162 |      1 | #!/bin/sh
 | 
|  |      2 | ###set -e
 | 
|  |      3 | 
 | 
|  |      4 | trap "exit" INT
 | 
|  |      5 | 
 | 
|  |      6 | files=${1:-assignment20176-*}
 | 
|  |      7 | 
 | 
|  |      8 | for sd in $files; do
 | 
|  |      9 |   cd $sd
 | 
|  |     10 |   echo $sd
 | 
|  |     11 |   touch .
 | 
|  |     12 |   cp ../../../marking1/collatz_test.sh .
 | 
|  |     13 |   cp ../../../marking1/collatz_test1.scala .
 | 
|  |     14 |   cp ../../../marking1/collatz_test2.scala .
 | 
|  |     15 |   cp ../../../marking1/alcohol_test.sh .
 | 
|  |     16 |   cp ../../../marking1/alcohol.csv .
 | 
|  |     17 |   cp ../../../marking1/population.csv .
 | 
|  |     18 |   cp ../../../marking1/alcohol_test1.scala .
 | 
|  |     19 |   cp ../../../marking1/alcohol_test2.scala .
 | 
|  |     20 |   cp ../../../marking1/alcohol_test3.scala .
 | 
|  |     21 |   ./collatz_test.sh output
 | 
|  |     22 |   ./alcohol_test.sh output
 | 
|  |     23 |   rm collatz_test.sh
 | 
|  |     24 |   rm collatz_test1.scala
 | 
|  |     25 |   rm collatz_test2.scala
 | 
|  |     26 |   rm alcohol_test.sh 
 | 
|  |     27 |   rm alcohol.csv 
 | 
|  |     28 |   rm population.csv
 | 
|  |     29 |   rm alcohol_test1.scala 
 | 
|  |     30 |   rm alcohol_test2.scala 
 | 
|  |     31 |   rm alcohol_test3.scala
 | 
|  |     32 |   cd ..
 | 
|  |     33 | done
 | 
|  |     34 | 
 | 
|  |     35 | 
 |