marking4/compare
author Christian Urban <urbanc@in.tum.de>
Fri, 14 Dec 2018 20:01:49 +0000
changeset 246 178438912e5f
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
246
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
###set -e
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
trap "exit" INT
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
files=${1:-assignment20189-*}
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
for sd in $files; do
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  cd $sd
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  cp output output1
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  #cmp -s output output1 > /dev/null
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  #if [ $? -eq 1 ]; then
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
  #    echo $sd + "is different"
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
  #fi
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  cd ..
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
done
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
178438912e5f updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18