pre_marking2/mk
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 08 Nov 2021 01:03:09 +0000
changeset 401 9471c3b7ea02
parent 382 1bd800376e0c
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
325
ca9c1cf929fa updated
Christian Urban <urbanc@in.tum.de>
parents: 228
diff changeset
     1
#!/bin/bash
ca9c1cf929fa updated
Christian Urban <urbanc@in.tum.de>
parents: 228
diff changeset
     2
set -euo pipefail
ca9c1cf929fa updated
Christian Urban <urbanc@in.tum.de>
parents: 228
diff changeset
     3
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
trap "exit" INT
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
382
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 325
diff changeset
     7
files=${1:-*/pre2}
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
for sd in $files; do
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  cd $sd
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  echo $sd
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  touch .
382
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 325
diff changeset
    13
  cp ../../../../../pre_marking2/docdiff_test.sh .
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 325
diff changeset
    14
  cp ../../../../../pre_marking2/docdiff_test1.scala .
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 325
diff changeset
    15
  cp ../../../../../pre_marking2/docdiff_test2.scala .
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 325
diff changeset
    16
  cp ../../../../../pre_marking2/docdiff_test3.scala .
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 325
diff changeset
    17
  cp ../../../../../pre_marking2/docdiff_test4.scala .
227
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents: 162
diff changeset
    18
  ./docdiff_test.sh output
325
ca9c1cf929fa updated
Christian Urban <urbanc@in.tum.de>
parents: 228
diff changeset
    19
  rm docdiff_test.sh
227
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents: 162
diff changeset
    20
  rm docdiff_test1.scala
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents: 162
diff changeset
    21
  rm docdiff_test2.scala
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents: 162
diff changeset
    22
  rm docdiff_test3.scala
b5f3e814a710 updated
Christian Urban <urbanc@in.tum.de>
parents: 162
diff changeset
    23
  rm docdiff_test4.scala
325
ca9c1cf929fa updated
Christian Urban <urbanc@in.tum.de>
parents: 228
diff changeset
    24
  cd ..
162
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  cd ..
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
done
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
6d25ccbb3cf2 marking 2
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28