marking1/mk-advanced
author Christian Urban <urbanc@in.tum.de>
Sat, 02 Feb 2019 01:21:43 +0000
changeset 260 b4812c877b05
parent 169 b37052895281
child 261 8997430d9765
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
260
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     6
files=${1:-assignment20186A-*}
169
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 .
260
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    12
  cp ../../../marking1/*.sh .
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    13
  cp ../../../marking1/drumb_test4.scala .
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    14
  cp ../../../marking1/drumb_test5.scala .
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    15
  cp ../../../marking1/drumb_test6.scala .
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    16
  cp ../../../marking1/drumb_test7.scala .
169
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  cp ../../../marking1/*.csv .
260
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    18
  ./drumb_test2.sh output
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    19
  rm *.sh
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    20
  rm drumb_test4.scala
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    21
  rm drumb_test5.scala
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    22
  rm drumb_test6.scala
b4812c877b05 updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    23
  rm drumb_test7.scala
169
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
  rm *.csv
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  cd ..
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
done
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28