pre_marking1/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 09 Jan 2022 01:06:30 +0000
changeset 420 4edc1a308652
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