main_marking4/mk_main4
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 11 Apr 2022 23:55:27 +0100
changeset 424 daf561a83ba6
parent 391 main_marking4/mk@0930e4555b60
child 463 0315d9983cd0
permissions -rwxr-xr-x
added

#!/bin/bash
###set -e

trap "exit" INT

files=${1:-*/main4}

for sd in $files; do
  echo -e "\n"
  cd $sd
  echo $sd
  touch .
  cp ../../../../../main_marking4/knight_test.sh .
  cp ../../../../../main_marking4/knight1_test1.scala .
  cp ../../../../../main_marking4/knight1_test2.scala .
  cp ../../../../../main_marking4/knight1_test3a.scala .
  cp ../../../../../main_marking4/knight1_test3b.scala .
  cp ../../../../../main_marking4/knight1_test3c.scala .
  cp ../../../../../main_marking4/knight1_test4.scala .
  cp ../../../../../main_marking4/knight1_test5.scala .
  cp ../../../../../main_marking4/knight2_test6.scala .
  cp ../../../../../main_marking4/knight2_test7.scala .
  cp ../../../../../main_marking4/knight2_test8.scala .
  cp ../../../../../main_marking4/knight3_test9.scala .
  ./knight_test.sh output
  rm knight_test.sh
  rm knight1_test1.scala
  rm knight1_test2.scala
  rm knight1_test3a.scala 
  rm knight1_test3b.scala
  rm knight1_test3c.scala
  rm knight1_test4.scala
  rm knight1_test5.scala
  rm knight2_test6.scala
  rm knight2_test7.scala
  rm knight2_test8.scala
  rm knight3_test9.scala
  cd ..
  cd ..
done