1
#!/bin/sh
2
set -e
3
4
for sd in solutions*; do
5
cd $sd
6
for fl in *.scala; do
7
echo "$fl compiled to ${fl%".scala"}.jar"
8
scalac -d ${fl%".scala"}.jar $fl
9
echo "copied to ../template${sd#"solutions"}"
10
cp ${fl%".scala"}.jar ../template${sd#"solutions"}
11
done
12
cd ..
13