mk_jars
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 31 Oct 2020 16:23:12 +0000
changeset 344 a2ac7e3fa330
parent 297 eab44dbee855
child 348 b5b6ed38c2f2
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 ../templates${sd#"solutions"}/"
     cp ${fl%".scala"}.jar ../templates${sd#"solutions"}/
  done
  cd ..
done