annotate dist/scripts/build-luan.sh @ 239:aa7bc9c1df22

add unedited Lua manual git-svn-id: https://luan-java.googlecode.com/svn/trunk@240 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 06 Oct 2014 22:03:16 +0000
parents 55b4b077e5cc
children 91be4027b2a8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
172
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
1 VERSION=trunk
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
2
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
3 . check_luan_home.sh
172
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
4
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
5 cd $LUAN_HOME
235
f247c2ea9eef improve dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 234
diff changeset
6 rm dist/jars/*.jar
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
7 set -e
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
8 echo "_G._VERSION = 'Luan $VERSION'" >core/src/luan/version.luan
172
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
9
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
10 cd $LUAN_HOME
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
11 SRC=core/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
12 CLASSPATH=$LUAN_HOME/$SRC
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
13 javac -classpath $CLASSPATH `find $SRC -name *.java`
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
14 cd $SRC
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
15 jar cvf $LUAN_HOME/dist/jars/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan`
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
16
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
17 cd $LUAN_HOME
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
18 SRC=web/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
19 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
20 for i in $LUAN_HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
21 javac -classpath $CLASSPATH `find $SRC -name *.java`
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
22 cd $SRC
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
23 jar cvf $LUAN_HOME/dist/jars/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan`
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
24
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
25 cd $LUAN_HOME
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
26 SRC=logging/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
27 #CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
28 #for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
29 #javac -classpath $CLASSPATH `find $SRC -name *.java`
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
30 cd $SRC
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
31 jar cvf $LUAN_HOME/dist/jars/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan`
229
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
32
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
33 cd $LUAN_HOME
229
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
34 SRC=mail/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
35 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
36 for i in $LUAN_HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
229
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
37 javac -classpath $CLASSPATH `find $SRC -name *.java`
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
38 cd $SRC
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
39 jar cvf $LUAN_HOME/dist/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan`
234
b25feac318d8 add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 229
diff changeset
40
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
41 cd $LUAN_HOME
234
b25feac318d8 add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 229
diff changeset
42 SRC=lucene/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
43 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
44 for i in $LUAN_HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
234
b25feac318d8 add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 229
diff changeset
45 javac -classpath $CLASSPATH `find $SRC -name *.java`
b25feac318d8 add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 229
diff changeset
46 cd $SRC
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
47 jar cvf $LUAN_HOME/dist/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan`