comparison scripts/build-luan.sh @ 403:637f7ad85654

fix build to include stripe
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 28 Apr 2015 22:49:33 -0600
parents 93fa3dbe0c2f
children 7fd9f1b7b878
comparison
equal deleted inserted replaced
402:62b457c50594 403:637f7ad85654
26 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 26 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
27 for i in $LUAN_HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 27 for i in $LUAN_HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
28 javac -classpath $CLASSPATH `find $SRC -name *.java` 28 javac -classpath $CLASSPATH `find $SRC -name *.java`
29 cd $SRC 29 cd $SRC
30 jar cvf $LUAN_BUILD/luan/jars/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan` 30 jar cvf $LUAN_BUILD/luan/jars/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan`
31 cp $LUAN_HOME/web/ext/* $LUAN_BUILD/luan/jars
31 32
32 cd $LUAN_HOME 33 cd $LUAN_HOME
33 SRC=logging/src 34 SRC=logging/src
34 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 35 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
35 for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 36 for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
36 javac -classpath $CLASSPATH `find $SRC -name *.java` 37 javac -classpath $CLASSPATH `find $SRC -name *.java`
37 cd $SRC 38 cd $SRC
38 jar cvf $LUAN_BUILD/luan/jars/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan` 39 jar cvf $LUAN_BUILD/luan/jars/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan`
40 cp $LUAN_HOME/logging/ext/* $LUAN_BUILD/luan/jars
39 41
40 cd $LUAN_HOME 42 cd $LUAN_HOME
41 SRC=mail/src 43 SRC=mail/src
42 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 44 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
43 for i in $LUAN_HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 45 for i in $LUAN_HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
44 javac -classpath $CLASSPATH `find $SRC -name *.java` 46 javac -classpath $CLASSPATH `find $SRC -name *.java`
45 cd $SRC 47 cd $SRC
46 jar cvf $LUAN_BUILD/luan/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan` 48 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
47 50
48 cd $LUAN_HOME 51 cd $LUAN_HOME
49 SRC=lucene/src 52 SRC=lucene/src
50 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC 53 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
51 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done 54 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
52 javac -classpath $CLASSPATH `find $SRC -name *.java` 55 javac -classpath $CLASSPATH `find $SRC -name *.java`
53 cd $SRC 56 cd $SRC
54 jar cvf $LUAN_BUILD/luan/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan` 57 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
55 59
56 cp $LUAN_HOME/web/ext/* $LUAN_BUILD/luan/jars 60 cd $LUAN_HOME
57 cp $LUAN_HOME/logging/ext/* $LUAN_BUILD/luan/jars 61 SRC=stripe/src
58 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars 62 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
59 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars 63 for i in $LUAN_HOME/stripe/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
64 javac -classpath $CLASSPATH `find $SRC -name *.java`
65 cd $SRC
66 jar cvf $LUAN_BUILD/luan/jars/luan-stripe-$VERSION.jar `find . -name *.class -o -name *.luan`
67 cp $LUAN_HOME/stripe/ext/* $LUAN_BUILD/luan/jars
60 68
61 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan 69 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan
62 chmod +x $LUAN_BUILD/luan/install.sh 70 chmod +x $LUAN_BUILD/luan/install.sh
63 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan 71 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan
64 72