marking1/mk
author Christian Urban <urbanc@in.tum.de>
Tue, 05 Dec 2017 00:34:14 +0000
changeset 162 6d25ccbb3cf2
child 209 40bdf9064e13
permissions -rwxr-xr-x
marking 2

#!/bin/sh
###set -e

trap "exit" INT

files=${1:-assignment20176-*}

for sd in $files; do
  cd $sd
  echo $sd
  touch .
  cp ../../../marking1/collatz_test.sh .
  cp ../../../marking1/collatz_test1.scala .
  cp ../../../marking1/collatz_test2.scala .
  cp ../../../marking1/alcohol_test.sh .
  cp ../../../marking1/alcohol.csv .
  cp ../../../marking1/population.csv .
  cp ../../../marking1/alcohol_test1.scala .
  cp ../../../marking1/alcohol_test2.scala .
  cp ../../../marking1/alcohol_test3.scala .
  ./collatz_test.sh output
  ./alcohol_test.sh output
  rm collatz_test.sh
  rm collatz_test1.scala
  rm collatz_test2.scala
  rm alcohol_test.sh 
  rm alcohol.csv 
  rm population.csv
  rm alcohol_test1.scala 
  rm alcohol_test2.scala 
  rm alcohol_test3.scala
  cd ..
done