main_marking4/mk_main4
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 02 Nov 2022 21:49:42 +0000
changeset 430 274c865b3878
parent 424 daf561a83ba6
child 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 .
424
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    25
  ./knight_test.sh output
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    26
  rm knight_test.sh
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    27
  rm knight1_test1.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    28
  rm knight1_test2.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    29
  rm knight1_test3a.scala 
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    30
  rm knight1_test3b.scala
Christian Urban <christian.urban@kcl.ac.uk>
parents: 391
diff changeset
    31
  rm knight1_test3c.scala
391
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    32
  rm knight1_test4.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    33
  rm knight1_test5.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    34
  rm knight2_test6.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    35
  rm knight2_test7.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    36
  rm knight2_test8.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    37
  rm knight3_test9.scala
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    38
  cd ..
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    39
  cd ..
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    40
done
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    41
0930e4555b60 added main4 marking
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    42