marking3/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 10 Nov 2022 20:10:20 +0000
changeset 443 80c691a4caab
parent 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
326
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
     6
files=${1:-assignment2019scala-*/Part8}
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 .
326
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    12
  cp ../../../../../marking3/knight1_test.sh .
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    13
  cp ../../../../../marking3/knight1_test1.scala .
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    14
  cp ../../../../../marking3/knight1_test2.scala .
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    15
  cp ../../../../../marking3/knight1_test3a.scala .
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    16
  cp ../../../../../marking3/knight1_test3b.scala .
332
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 326
diff changeset
    17
  ./knight1_test.sh output
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  rm knight1_test.sh
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  rm knight1_test1.scala
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  rm knight1_test2.scala
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  rm knight1_test3a.scala 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
  rm knight1_test3b.scala
326
e5453add7df6 updated
Christian Urban <urbanc@in.tum.de>
parents: 243
diff changeset
    23
  cd ..
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
  cd ..
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
done
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27