#!/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