mk_jars
author Christian Urban <urbanc@in.tum.de>
Thu, 31 Oct 2019 10:44:10 +0000
changeset 296 12dc251fc47e
child 297 eab44dbee855
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
296
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/sh
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
set -e
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
for sd in solutions*; do
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
  cd $sd
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
  for fl in *.scala; do
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
     echo "$fl compiled to ${fl%".scala"}.jar"
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
     scalac -d ${fl%".scala"}.jar $fl
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
     echo "copied to ../template${sd#"solutions"}"
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
     cp ${fl%".scala"}.jar ../template${sd#"solutions"}
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  done
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  cd ..
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
done