main_marking4/mk_main4
changeset 424 daf561a83ba6
parent 391 0930e4555b60
child 463 0315d9983cd0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_marking4/mk_main4	Mon Apr 11 23:55:27 2022 +0100
@@ -0,0 +1,42 @@
+#!/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
+
+