comparison scripts/build-luan.sh @ 729:4ce68aad92b7

just build one luan jar file
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 10 Jun 2016 15:32:34 -0600
parents 11839152caef
children 3e30cf310e56
comparison
equal deleted inserted replaced
728:11839152caef 729:4ce68aad92b7
19 cd $LUAN_HOME 19 cd $LUAN_HOME
20 SRC=core/src 20 SRC=core/src
21 CLASSPATH=$LUAN_HOME/$SRC 21 CLASSPATH=$LUAN_HOME/$SRC
22 javac -classpath $CLASSPATH `find $SRC -name *.java` 22 javac -classpath $CLASSPATH `find $SRC -name *.java`
23 cd $SRC 23 cd $SRC
24 jar cvf $LUAN_BUILD/luan/jars/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan` 24 jar cvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan`
25 25
26 cd $LUAN_HOME 26 cd $LUAN_HOME
27 SRC=http/src 27 SRC=http/src
28 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J 28 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J
29 for i in $LUAN_HOME/http/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 29 for i in $LUAN_HOME/http/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
30 javac -classpath $CLASSPATH `find $SRC -name *.java` 30 javac -classpath $CLASSPATH `find $SRC -name *.java`
31 cd $SRC 31 cd $SRC
32 jar cvf $LUAN_BUILD/luan/jars/luan-http-$VERSION.jar `find . -name *.class -o -name *.luan` 32 jar uvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan`
33 cp $LUAN_HOME/http/ext/* $LUAN_BUILD/luan/jars 33 cp $LUAN_HOME/http/ext/* $LUAN_BUILD/luan/jars
34 34
35 cd $LUAN_HOME 35 cd $LUAN_HOME
36 SRC=logging/src 36 SRC=logging/src
37 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 37 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
38 for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 38 for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
39 javac -classpath $CLASSPATH `find $SRC -name *.java` 39 javac -classpath $CLASSPATH `find $SRC -name *.java`
40 cd $SRC 40 cd $SRC
41 jar cvf $LUAN_BUILD/luan/jars/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan` 41 jar uvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan`
42 cp $LUAN_HOME/logging/ext/* $LUAN_BUILD/luan/jars 42 cp $LUAN_HOME/logging/ext/* $LUAN_BUILD/luan/jars
43 43
44 cd $LUAN_HOME 44 cd $LUAN_HOME
45 SRC=mail/src 45 SRC=mail/src
46 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 46 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
47 for i in $LUAN_HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 47 for i in $LUAN_HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
48 javac -classpath $CLASSPATH `find $SRC -name *.java` 48 javac -classpath $CLASSPATH `find $SRC -name *.java`
49 cd $SRC 49 cd $SRC
50 jar cvf $LUAN_BUILD/luan/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan` 50 jar uvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan`
51 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars 51 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars
52 52
53 cd $LUAN_HOME 53 cd $LUAN_HOME
54 SRC=lucene/src 54 SRC=lucene/src
55 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J 55 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J
56 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 56 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
57 javac -classpath $CLASSPATH `find $SRC -name *.java` 57 javac -classpath $CLASSPATH `find $SRC -name *.java`
58 cd $SRC 58 cd $SRC
59 jar cvf $LUAN_BUILD/luan/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan` 59 jar uvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan`
60 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars 60 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars
61 61
62 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan 62 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan
63 chmod +x $LUAN_BUILD/luan/install.sh 63 chmod +x $LUAN_BUILD/luan/install.sh
64 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan 64 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan