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

#!/bin/sh
set -e

for sd in solutions*; do
  cd $sd
  for fl in *.scala; do
     echo "$fl compiled to ${fl%".scala"}.jar"
     scalac -d ${fl%".scala"}.jar $fl
     echo "copied to ../template${sd#"solutions"}"
     cp ${fl%".scala"}.jar ../template${sd#"solutions"}
  done
  cd ..
done