#!/bin/bash
###set -e
trap "exit" INT
files=${1:-*/main2}
for sd in $files; do
echo -e "\n"
cd $sd
echo $sd
touch .
cp ../../../../../main_marking2/wordle_test.sh .
cp ../../../../../main_marking2/wordle_test1.scala .
cp ../../../../../main_marking2/wordle_test2.scala .
cp ../../../../../main_marking2/wordle_test3a.scala .
cp ../../../../../main_marking2/wordle_test3b.scala .
cp ../../../../../main_marking2/wordle_test4.scala .
cp ../../../../../main_marking2/wordle_test5.scala .
cp ../../../../../main_marking2/wordle_test6.scala .
cp ../../../../../main_marking2/wordle_test7.scala .
cp ../../../../../main_marking2/wordle.txt .
./wordle_test.sh output
rm wordle_test.sh
rm wordle_test1.scala
rm wordle_test2.scala
rm wordle_test3a.scala
rm wordle_test3b.scala
rm wordle_test4.scala
rm wordle_test5.scala
rm wordle_test6.scala
rm wordle_test7.scala
rm wordle.txt
cd ..
cd ..
done