pre_marking3/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 15 Jan 2021 02:47:51 +0000
changeset 385 44383203970f
child 386 e2170c91a9f2
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
385
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
#!/bin/bash
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
set -euo pipefail
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
trap "exit" INT
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
files=${1:-*/pre3}
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     9
for sd in $files; do
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
  cd $sd
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
  echo $sd
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
  touch .
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
  cp ../../../../../pre_marking3/postfix_test.sh .
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
  cp ../../../../../pre_marking3/postfix_test1.scala .
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    15
  cp ../../../../../pre_marking3/postfix_test2.scala .
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    16
  cp ../../../../../pre_marking3/postfix_test3.scala .
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    17
  cp ../../../../../pre_marking3/postfix_test4.scala .
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    18
  ./postfix_test.sh output
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    19
  rm postfix_test.sh
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    20
  rm postfix_test1.scala
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    21
  rm postfix_test2.scala
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    22
  rm postfix_test3.scala
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    23
  rm postfix_test3.scala
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    24
  cd ..
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    25
  cd ..
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    26
done
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    27
44383203970f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    28