main_marking4/mk_main4
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 23 Feb 2024 11:31:36 +0000
changeset 483 1a51207780e6
parent 463 0315d9983cd0
permissions -rwxr-xr-x
updated

#!/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 .
  cp ../../../../../main_marking4/knight4_test10.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
  rm knight4_test10.scala
  cd ..
  cd ..
done