marking5/mk-advanced
author Christian Urban <urbanc@in.tum.de>
Thu, 17 Jan 2019 00:53:24 +0000
changeset 256 512292bb5e93
parent 255 44f2b6e34015
child 333 24bc76d97db2
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
253
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
256
512292bb5e93 updated
Christian Urban <urbanc@in.tum.de>
parents: 255
diff changeset
     6
files=${1:-assignment201810-*}
253
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  echo $sd
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  touch .
255
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    12
  cp ../../../marking5/bfc_test.sh .
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    13
  cp ../../../marking5/bf_test5.scala .
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    14
  cp ../../../marking5/bf_test6.scala .
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    15
  cp ../../../marking5/bf_test7.scala .
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    16
  cp ../../../marking5/*.bf .
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    17
  ./bfc_test.sh output
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    18
  rm bfc_test.sh
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    19
  rm bf_test5.scala
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    20
  rm bf_test6.scala
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    21
  rm bf_test7.scala
44f2b6e34015 updated
Christian Urban <urbanc@in.tum.de>
parents: 253
diff changeset
    22
  rm *.bf
253
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  cd ..
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
done
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26