main_marking4/mk_main4
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 15 Sep 2024 12:57:59 +0100
changeset 493 244df77507c2
parent 463 0315d9983cd0
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
     1
#!/bin/bash
391
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
###set -e
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
trap "exit" INT
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
files=${1:-*/main4}
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
for sd in $files; do
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
     9
  echo -e "\n"
391
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
  cd $sd
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
  echo $sd
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
  touch .
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    13
  cp ../../../../../main_marking4/knight_test.sh .
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    14
  cp ../../../../../main_marking4/knight1_test1.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    15
  cp ../../../../../main_marking4/knight1_test2.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    16
  cp ../../../../../main_marking4/knight1_test3a.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    17
  cp ../../../../../main_marking4/knight1_test3b.scala .
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    18
  cp ../../../../../main_marking4/knight1_test3c.scala .
391
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    19
  cp ../../../../../main_marking4/knight1_test4.scala .
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    20
  cp ../../../../../main_marking4/knight1_test5.scala .
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    21
  cp ../../../../../main_marking4/knight2_test6.scala .
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    22
  cp ../../../../../main_marking4/knight2_test7.scala .
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    23
  cp ../../../../../main_marking4/knight2_test8.scala .
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    24
  cp ../../../../../main_marking4/knight3_test9.scala .
463
0315d9983cd0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 424
diff changeset
    25
  cp ../../../../../main_marking4/knight4_test10.scala .
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    26
  ./knight_test.sh output
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    27
  rm knight_test.sh
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    28
  rm knight1_test1.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    29
  rm knight1_test2.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    30
  rm knight1_test3a.scala 
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    31
  rm knight1_test3b.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    32
  rm knight1_test3c.scala
391
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    33
  rm knight1_test4.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    34
  rm knight1_test5.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    35
  rm knight2_test6.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    36
  rm knight2_test7.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    37
  rm knight2_test8.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    38
  rm knight3_test9.scala
463
0315d9983cd0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 424
diff changeset
    39
  rm knight4_test10.scala
391
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    40
  cd ..
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    41
  cd ..
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    42
done
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    43
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    44