marking1/mk-advanced
author Christian Urban <urbanc@in.tum.de>
Sat, 17 Nov 2018 13:33:51 +0000
changeset 207 5bbbe737184e
parent 169 b37052895281
child 260 b4812c877b05
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
169
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
files=${1:-assignment20176-*}
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  echo $sd
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  touch .
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  cp ../../../marking1/drumb_test.sh .
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
  cp ../../../marking1/drumb_test1.scala .
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
  cp ../../../marking1/drumb_test2.scala .
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  cp ../../../marking1/drumb_test3.scala .
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
  cp ../../../marking1/*.csv .
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  ./drumb_test.sh output
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  rm drumb_test.sh
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  rm drumb_test1.scala
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  rm drumb_test2.scala
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  rm drumb_test3.scala
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
  rm *.csv
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  cd ..
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
done
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26