marking3/mk-advanced
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
332
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
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
332
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    11
  sleep 5
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  touch .
332
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    13
  cp ../../../../../marking3/knight2_test.sh .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    14
  cp ../../../../../marking3/knight1_test4.scala .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    15
  cp ../../../../../marking3/knight1_test5.scala .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    16
  cp ../../../../../marking3/knight2_test6.scala .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    17
  cp ../../../../../marking3/knight2_test7.scala .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    18
  cp ../../../../../marking3/knight2_test8.scala .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    19
  cp ../../../../../marking3/knight3_test9.scala .
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    20
  ./knight2_test.sh output
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    21
  rm knight2_test.sh
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    22
  rm knight1_test4.scala
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    23
  rm knight1_test5.scala
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    24
  rm knight2_test6.scala
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    25
  rm knight2_test7.scala
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    26
  rm knight2_test8.scala
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    27
  rm knight3_test9.scala
703c7e42bf46 updated
Christian Urban <urbanc@in.tum.de>
parents: 258
diff changeset
    28
  cd ..
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
  cd ..
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
done
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32