mk_jars
author Christian Urban <urbanc@in.tum.de>
Mon, 27 Jan 2020 10:18:13 +0000
changeset 329 8a34b2ebc8cc
parent 297 eab44dbee855
child 348 b5b6ed38c2f2
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
297
eab44dbee855 updated jars
Christian Urban <urbanc@in.tum.de>
parents: 296
diff changeset
     9
     echo "copied to ../templates${sd#"solutions"}/"
eab44dbee855 updated jars
Christian Urban <urbanc@in.tum.de>
parents: 296
diff changeset
    10
     cp ${fl%".scala"}.jar ../templates${sd#"solutions"}/
296
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