comparison scripts/build-luan.sh @ 521:8a217fe5b4f3

cleaner LuanState.onClose()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 27 May 2015 03:12:28 -0600
parents 1d082a0812e0
children 7bd97d642f37
comparison
equal deleted inserted replaced
520:fcb9b4c8e972 521:8a217fe5b4f3
1 set -e 1 set -e
2 2
3 cd `dirname $0`/.. 3 cd `dirname $0`/..
4 LUAN_HOME=`pwd` 4 LUAN_HOME=`pwd`
5 LUAN_BUILD=$LUAN_HOME/build 5 LUAN_BUILD=$LUAN_HOME/build
6 SLF4J=$LUAN_HOME/logging/ext/slf4j-api-1.6.4.jar
6 7
7 VERSION=`scripts/version.sh` 8 VERSION=`scripts/version.sh`
8 9
9 rm -rf $LUAN_BUILD 10 rm -rf $LUAN_BUILD
10 mkdir $LUAN_BUILD 11 mkdir $LUAN_BUILD
21 cd $SRC 22 cd $SRC
22 jar cvf $LUAN_BUILD/luan/jars/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan` 23 jar cvf $LUAN_BUILD/luan/jars/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan`
23 24
24 cd $LUAN_HOME 25 cd $LUAN_HOME
25 SRC=http/src 26 SRC=http/src
26 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 27 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J
27 for i in $LUAN_HOME/http/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 28 for i in $LUAN_HOME/http/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
28 javac -classpath $CLASSPATH `find $SRC -name *.java` 29 javac -classpath $CLASSPATH `find $SRC -name *.java`
29 cd $SRC 30 cd $SRC
30 jar cvf $LUAN_BUILD/luan/jars/luan-http-$VERSION.jar `find . -name *.class -o -name *.luan` 31 jar cvf $LUAN_BUILD/luan/jars/luan-http-$VERSION.jar `find . -name *.class -o -name *.luan`
31 cp $LUAN_HOME/http/ext/* $LUAN_BUILD/luan/jars 32 cp $LUAN_HOME/http/ext/* $LUAN_BUILD/luan/jars
48 jar cvf $LUAN_BUILD/luan/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan` 49 jar cvf $LUAN_BUILD/luan/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan`
49 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars 50 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars
50 51
51 cd $LUAN_HOME 52 cd $LUAN_HOME
52 SRC=lucene/src 53 SRC=lucene/src
53 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 54 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J
54 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 55 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
55 javac -classpath $CLASSPATH `find $SRC -name *.java` 56 javac -classpath $CLASSPATH `find $SRC -name *.java`
56 cd $SRC 57 cd $SRC
57 jar cvf $LUAN_BUILD/luan/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan` 58 jar cvf $LUAN_BUILD/luan/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan`
58 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars 59 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars