comparison dist/scripts/build-luan.sh @ 235:f247c2ea9eef

improve dist git-svn-id: https://luan-java.googlecode.com/svn/trunk@236 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 05 Oct 2014 04:42:04 +0000
parents build.sh@b25feac318d8
children 55b4b077e5cc
comparison
equal deleted inserted replaced
234:b25feac318d8 235:f247c2ea9eef
1 VERSION=trunk
2
3 cd `dirname $0`/../..
4 HOME=`pwd`
5
6 rm dist/jars/*.jar
7
8 set -e
9
10 echo "_G._VERSION = 'Luan $VERSION'" >core/src/luan/version.luan
11
12 cd $HOME
13 SRC=core/src
14 CLASSPATH=$HOME/$SRC
15 javac -classpath $CLASSPATH `find $SRC -name *.java`
16 cd $SRC
17 jar cvf $HOME/dist/jars/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan`
18
19 cd $HOME
20 SRC=web/src
21 CLASSPATH=$HOME/core/src:$HOME/$SRC
22 for i in $HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
23 javac -classpath $CLASSPATH `find $SRC -name *.java`
24 cd $SRC
25 jar cvf $HOME/dist/jars/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan`
26
27 cd $HOME
28 SRC=logging/src
29 #CLASSPATH=$HOME/core/src:$HOME/$SRC
30 #for i in $HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
31 #javac -classpath $CLASSPATH `find $SRC -name *.java`
32 cd $SRC
33 jar cvf $HOME/dist/jars/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan`
34
35 cd $HOME
36 SRC=mail/src
37 CLASSPATH=$HOME/core/src:$HOME/$SRC
38 for i in $HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
39 javac -classpath $CLASSPATH `find $SRC -name *.java`
40 cd $SRC
41 jar cvf $HOME/dist/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan`
42
43 cd $HOME
44 SRC=lucene/src
45 CLASSPATH=$HOME/core/src:$HOME/$SRC
46 for i in $HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
47 javac -classpath $CLASSPATH `find $SRC -name *.java`
48 cd $SRC
49 jar cvf $HOME/dist/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan`