#!/bin/sh
###set -e
trap "exit" INT
files=${1:-*/pre4}
for sd in $files; do
cd $sd
echo $sd
sleep 15
touch .
cp ../../../../../pre_marking4/knight1_test.sh .
cp ../../../../../pre_marking4/knight1_test1.scala .
cp ../../../../../pre_marking4/knight1_test2.scala .
cp ../../../../../pre_marking4/knight1_test3a.scala .
cp ../../../../../pre_marking4/knight1_test3b.scala .
cp ../../../../../pre_marking4/knight1_test3c.scala .
./knight1_test.sh output
rm knight1_test.sh
rm knight1_test1.scala
rm knight1_test2.scala
rm knight1_test3a.scala
rm knight1_test3b.scala
rm knight1_test3c.scala
cd ..
cd ..
done