pre_marking1/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 08 Nov 2021 20:59:32 +0000
changeset 414 59eeb22c9229
parent 382 1bd800376e0c
permissions -rwxr-xr-x
updated

#!/bin/bash
set -euo pipefail

trap "exit" INT

files=${1:-*/pre1}

for sd in $files; do
  cd $sd
  echo $sd
  sleep 5
  touch .
  cp ../../../../../pre_marking1/collatz_test.sh .
  cp ../../../../../pre_marking1/collatz_test1.scala .
  cp ../../../../../pre_marking1/collatz_test2.scala .
  cp ../../../../../pre_marking1/collatz_test3.scala .
  ./collatz_test.sh output
  rm collatz_test.sh
  rm collatz_test1.scala
  rm collatz_test2.scala
  rm collatz_test3.scala
  cd ..
  cd ..
done