Mercurial Hosting > luan
comparison scripts/build-luan.sh @ 775:1a68fc55a80c
simplify dir structure
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 14:36:40 -0600 |
parents | 3e30cf310e56 |
children | fc3e366caa51 |
comparison
equal
deleted
inserted
replaced
774:3e30cf310e56 | 775:1a68fc55a80c |
---|---|
11 mkdir $LUAN_BUILD | 11 mkdir $LUAN_BUILD |
12 mkdir $LUAN_BUILD/luan | 12 mkdir $LUAN_BUILD/luan |
13 mkdir $LUAN_BUILD/luan/jars | 13 mkdir $LUAN_BUILD/luan/jars |
14 | 14 |
15 cd $LUAN_HOME | 15 cd $LUAN_HOME |
16 echo "return '$VERSION'" >core/src/luan/version.luan | 16 echo "return '$VERSION'" >src/luan/version.luan |
17 find . -name *.class -delete | 17 find . -name *.class -delete |
18 | 18 |
19 cd $LUAN_HOME | 19 CLASSPATH=$LUAN_HOME/src |
20 SRC=core/src | 20 for i in $LUAN_HOME/lib/* ; do CLASSPATH=$CLASSPATH:$i ; done |
21 CLASSPATH=$LUAN_HOME/$SRC | 21 cd src |
22 javac -classpath $CLASSPATH `find $SRC -name *.java` | 22 javac -classpath $CLASSPATH `find . -name *.java` |
23 cd $SRC | |
24 jar cvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan` | 23 jar cvf $LUAN_BUILD/luan/jars/luan-$VERSION.jar `find . -name *.class -o -name *.luan` |
25 | 24 cp $LUAN_HOME/lib/* $LUAN_BUILD/luan/jars |
26 cd $LUAN_HOME | |
27 SRC=http/src | |
28 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J | |
29 for i in $LUAN_HOME/http/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done | |
30 javac -classpath $CLASSPATH `find $SRC -name *.java` | |
31 cd $SRC | |
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 | |
34 | |
35 cd $LUAN_HOME | |
36 SRC=logging/src | |
37 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC | |
38 for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done | |
39 javac -classpath $CLASSPATH `find $SRC -name *.java` | |
40 cd $SRC | |
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 | |
43 | |
44 cd $LUAN_HOME | |
45 SRC=mail/src | |
46 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC | |
47 for i in $LUAN_HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done | |
48 javac -classpath $CLASSPATH `find $SRC -name *.java` | |
49 cd $SRC | |
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 | |
52 | |
53 cd $LUAN_HOME | |
54 SRC=lucene/src | |
55 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J | |
56 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done | |
57 javac -classpath $CLASSPATH `find $SRC -name *.java` | |
58 cd $SRC | |
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 | |
61 | 25 |
62 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan | 26 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan |
63 chmod +x $LUAN_BUILD/luan/install.sh | 27 chmod +x $LUAN_BUILD/luan/install.sh |
64 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan | 28 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan |
65 | 29 |