Mercurial Hosting > luan
annotate build.sh @ 205:3918f92de5fe
add logging component
git-svn-id: https://luan-java.googlecode.com/svn/trunk@206 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 07 Jul 2014 09:37:02 +0000 |
parents | 58c6ca5d4524 |
children | 2a54cb7d1cf4 |
rev | line source |
---|---|
172
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
1 VERSION=trunk |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
2 |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
3 cd `dirname $0` |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
4 HOME=`pwd` |
172
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
5 |
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
6 rm dist/*.jar |
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
7 |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
8 set -e |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
9 |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
10 echo "_G._VERSION = 'Luan $VERSION'" >core/src/luan/version.luan |
172
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
11 |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
12 cd $HOME |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
13 SRC=core/src |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
14 CLASSPATH=$HOME/$SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
15 javac -classpath $CLASSPATH `find $SRC -name *.java` |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
16 cd $SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
17 jar cvf $HOME/dist/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan` |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
18 |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
19 cd $HOME |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
20 SRC=web/src |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
21 CLASSPATH=$HOME/core/src:$HOME/$SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
22 for i in $HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
23 javac -classpath $CLASSPATH `find $SRC -name *.java` |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
24 cd $SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
25 jar cvf $HOME/dist/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan` |
205
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
26 |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
27 cd $HOME |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
28 SRC=logging/src |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
29 CLASSPATH=$HOME/core/src:$HOME/$SRC |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
30 for i in $HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
31 #javac -classpath $CLASSPATH `find $SRC -name *.java` |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
32 cd $SRC |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
33 jar cvf $HOME/dist/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan` |