view build.sh @ 232:9ce18106f95a

more lucene work git-svn-id: https://luan-java.googlecode.com/svn/trunk@233 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 01 Oct 2014 06:55:14 +0000
parents 2a54cb7d1cf4
children b25feac318d8
line wrap: on
line source

VERSION=trunk

cd `dirname $0`
HOME=`pwd`

rm dist/*.jar

set -e

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

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

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

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

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