| 
168
 | 
     1  | 
#!/bin/sh
  | 
| 
 | 
     2  | 
###set -e
  | 
| 
 | 
     3  | 
  | 
| 
 | 
     4  | 
trap "exit" INT
  | 
| 
 | 
     5  | 
  | 
| 
329
 | 
     6  | 
files=${1:-assignment2019-*/Part8/*}
 | 
| 
168
 | 
     7  | 
  | 
| 
 | 
     8  | 
for sd in $files; do
  | 
| 
 | 
     9  | 
  cd $sd
  | 
| 
 | 
    10  | 
  echo $sd
  | 
| 
 | 
    11  | 
  touch .
  | 
| 
329
 | 
    12  | 
  cp ../../../../../marking4/postfix_test.sh .
  | 
| 
 | 
    13  | 
  cp ../../../../../marking4/postfix_test7.scala .
  | 
| 
 | 
    14  | 
  cp ../../../../../marking4/postfix_test8.scala .
  | 
| 
 | 
    15  | 
  cp ../../../../../marking4/postfix_test9.scala .
  | 
| 
257
 | 
    16  | 
  ./postfix_test.sh output
  | 
| 
 | 
    17  | 
  rm postfix_test.sh
  | 
| 
 | 
    18  | 
  rm postfix_test7.scala
  | 
| 
 | 
    19  | 
  rm postfix_test8.scala
  | 
| 
 | 
    20  | 
  rm postfix_test9.scala
  | 
| 
168
 | 
    21  | 
  cd ..
  | 
| 
329
 | 
    22  | 
  cd ..
  | 
| 
168
 | 
    23  | 
done
  | 
| 
 | 
    24  | 
  | 
| 
 | 
    25  | 
  |