annotate scripts/build-luan.sh @ 308:869d2263de5d

move scripts git-svn-id: https://luan-java.googlecode.com/svn/trunk@309 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 23 Dec 2014 05:48:49 +0000
parents dist/scripts/build-luan.sh@4bf49f0a46b3
children 6bf47e28e0e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
1 VERSION=`svnversion`
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
2
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
3 if echo $VERSION | grep :
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
4 then
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
5 echo "svn update needed"
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
6 exit 1
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
7 fi
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
8
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
9
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
10 LUAN_BUILD=~/luanbuild
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
11
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
12 . 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
13
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
14 set -e
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
15
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
16 rm -rf $LUAN_BUILD
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
17 mkdir $LUAN_BUILD
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
18 mkdir $LUAN_BUILD/luan
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
19 mkdir $LUAN_BUILD/luan/jars
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
20
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
21 cd $LUAN_HOME
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
22 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
23
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
24 cd $LUAN_HOME
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
25 SRC=core/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
26 CLASSPATH=$LUAN_HOME/$SRC
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
27 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
28 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
29 jar cvf $LUAN_BUILD/luan/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
30
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
31 cd $LUAN_HOME
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
32 SRC=web/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
33 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
34 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
35 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
36 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
37 jar cvf $LUAN_BUILD/luan/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
38
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
39 cd $LUAN_HOME
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
40 SRC=logging/src
286
91be4027b2a8 Improve HTML of some tools.
hugo.tech@gmail.com <hugo.tech@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 238
diff changeset
41 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC
91be4027b2a8 Improve HTML of some tools.
hugo.tech@gmail.com <hugo.tech@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 238
diff changeset
42 for i in $LUAN_HOME/logging/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
91be4027b2a8 Improve HTML of some tools.
hugo.tech@gmail.com <hugo.tech@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 238
diff changeset
43 javac -classpath $CLASSPATH `find $SRC -name *.java`
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
44 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
45 jar cvf $LUAN_BUILD/luan/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
46
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
47 cd $LUAN_HOME
229
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
48 SRC=mail/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
49 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
50 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
51 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
52 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
53 jar cvf $LUAN_BUILD/luan/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
54
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
55 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
56 SRC=lucene/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
57 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
58 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
59 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
60 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
61 jar cvf $LUAN_BUILD/luan/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan`
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
62
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
63 cp $LUAN_HOME/web/ext/* $LUAN_BUILD/luan/jars
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
64 cp $LUAN_HOME/logging/ext/* $LUAN_BUILD/luan/jars
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
65 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
66 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
67
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
68 cp $LUAN_HOME/dist/scripts/install.sh $LUAN_BUILD/luan
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
69 chmod +x $LUAN_BUILD/luan/install.sh
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
70 cp $LUAN_HOME/dist/scripts/uninstall.sh $LUAN_BUILD/luan
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
71
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
72 cd $LUAN_BUILD
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
73 tar -cf luan-$VERSION.tar luan