Attic/mk-bf
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 15 Sep 2024 12:57:59 +0100
changeset 493 244df77507c2
parent 333 24bc76d97db2
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
253
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
files=${1:-assignment201810-*}
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  echo $sd
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  touch .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  cp ../../../marking5/bf_test.sh .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
  cp ../../../marking5/bf_test1.scala .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
  cp ../../../marking5/bf_test2.scala .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  cp ../../../marking5/bf_test3.scala .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
  cp ../../../marking5/bf_test4.scala .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  cp ../../../marking5/benchmark.bf .
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  ./bf_test.sh output
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  rm bf_test.sh
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  rm bf_test1.scala
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  rm bf_test2.scala
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
  rm bf_test3.scala
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  rm bf_test4.scala
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
  rm benchmark.bf
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  cd ..
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
done
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28