view 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
line wrap: on
line source

VERSION=trunk
echo "_G._VERSION = 'Luan $VERSION'" >`pwd`/core/src/luan/version.luan

rm dist/*.jar

SRC=`pwd`/core/src
CLASSPATH=$SRC
javac `find $SRC -name *.java`
jar cvf dist/luan-core-$VERSION.jar `find $SRC -name *.class -o -name *.luan`

SRC=`pwd`/web/src
CLASSPATH=`pwd`/core/src:$SRC
for i in `pwd`/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
javac `find $SRC -name *.java`
jar cvf dist/luan-web-$VERSION.jar `find $SRC -name *.class -o -name *.luan`