marking3/mk-advanced
author Christian Urban <urbanc@in.tum.de>
Fri, 16 Aug 2019 08:45:21 +0100
changeset 277 acaf2099406a
parent 258 ebe71908b13e
child 332 703c7e42bf46
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
258
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
     6
files=${1:-assignment20188-*}
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  echo $sd
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  touch .
258
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    12
  cp ../../../marking3/knight3_test.sh .
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    13
  cp ../../../marking3/knight_test6.scala .
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    14
  cp ../../../marking3/knight_test7.scala .
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    15
  cp ../../../marking3/knight_test8.scala .
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    16
  cp ../../../marking3/knight_test9.scala .
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  ./knight3_test.sh output
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  rm knight3_test.sh
258
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    19
  rm knight_test6.scala
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    20
  rm knight_test7.scala
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    21
  rm knight_test8.scala
ebe71908b13e updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    22
  rm knight_test9.scala
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  cd ..
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
done
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26