pre_marking1/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 25 Jan 2021 00:21:00 +0000
changeset 389 4113d4d8cf62
parent 382 1bd800376e0c
permissions -rwxr-xr-x
updated marking 2

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