marking1/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 10 Nov 2022 19:41:04 +0000
changeset 439 e27ff222fef3
parent 330 c5f89ee12d25
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
162
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
330
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
     6
files=${1:-assignment2019scala-*/Part6}
162
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  echo $sd
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  touch .
330
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    12
  cp ../../../../marking1/collatz_test.sh .
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    13
  cp ../../../../marking1/collatz_test1.scala .
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    14
  cp ../../../../marking1/collatz_test2.scala .
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    15
  ./collatz_test.sh output1
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    16
  rm collatz_test.sh
162
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  rm collatz_test1.scala
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  rm collatz_test2.scala
330
c5f89ee12d25 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    19
  cd ..
162
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  cd ..
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
done
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
2ea5b3456ed7 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23