marking1/mk
author Christian Urban <urbanc@in.tum.de>
Tue, 04 Feb 2020 11:20:31 +0000
changeset 330 c3d3461a5e77
parent 212 4bda49ec24da
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
330
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
     6
files=${1:-assignment2019scala-*/Part6}
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  echo $sd
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  touch .
330
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    12
  cp ../../../../marking1/collatz_test.sh .
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    13
  cp ../../../../marking1/collatz_test1.scala .
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    14
  cp ../../../../marking1/collatz_test2.scala .
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    15
  ./collatz_test.sh output1
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    16
  rm collatz_test.sh
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  rm collatz_test1.scala
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  rm collatz_test2.scala
330
c3d3461a5e77 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    19
  cd ..
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  cd ..
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
done
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23