Mercurial Hosting > luan
comparison build.sh @ 172:4edbf3204ca6
add build.sh and dist
git-svn-id: https://luan-java.googlecode.com/svn/trunk@173 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 22 Jun 2014 06:12:29 +0000 |
parents | |
children | 58c6ca5d4524 |
comparison
equal
deleted
inserted
replaced
171:3dcb0f9bee82 | 172:4edbf3204ca6 |
---|---|
1 VERSION=trunk | |
2 echo "_G._VERSION = 'Luan $VERSION'" >`pwd`/core/src/luan/version.luan | |
3 | |
4 rm dist/*.jar | |
5 | |
6 SRC=`pwd`/core/src | |
7 CLASSPATH=$SRC | |
8 javac `find $SRC -name *.java` | |
9 jar cvf dist/luan-core-$VERSION.jar `find $SRC -name *.class -o -name *.luan` | |
10 | |
11 SRC=`pwd`/web/src | |
12 CLASSPATH=`pwd`/core/src:$SRC | |
13 for i in `pwd`/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done | |
14 javac `find $SRC -name *.java` | |
15 jar cvf dist/luan-web-$VERSION.jar `find $SRC -name *.class -o -name *.luan` |