355
|
1 |
#!/bin/bash
|
296
|
2 |
set -e
|
|
3 |
|
408
|
4 |
subdirs=${1:-"core_solution1 core_solution2 core_solution3 main_solution1 main_solution2 main_solution3 main_solution4 main_solution5"}
|
348
|
5 |
|
|
6 |
for sd in $subdirs; do
|
296
|
7 |
cd $sd
|
|
8 |
for fl in *.scala; do
|
348
|
9 |
echo "$sd/$fl"
|
|
10 |
echo "copy to ${sd/solution/templates}/${fl%.scala}.jar"
|
|
11 |
scalac -d ${fl%.scala}.jar $fl
|
|
12 |
cp ${fl%.scala}.jar "../${sd/solution/templates}"
|
414
|
13 |
hg add -q "../${sd/solution/templates}/${fl%.scala}.jar"
|
296
|
14 |
done
|
|
15 |
cd ..
|
|
16 |
done
|
349
|
17 |
|
|
18 |
hg commit -m "updated jars"
|
|
19 |
|
|
20 |
# producing solutions and templates
|
|
21 |
# tar -zxvf templates.tgz pre_templates* main_templates*
|
|
22 |
# tar -zcvf templates.tgz pre_templates* main_templates*
|