annotate scripts/build-luan.sh @ 439:057c10f55f72

start version 0.7
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 May 2015 11:21:46 -0600
parents 7fd9f1b7b878
children aedb90df53ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
311
22ca4f3a65c3 remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 309
diff changeset
1 set -e
309
6bf47e28e0e5 fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 308
diff changeset
2
311
22ca4f3a65c3 remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 309
diff changeset
3 cd `dirname $0`/..
22ca4f3a65c3 remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 309
diff changeset
4 LUAN_HOME=`pwd`
22ca4f3a65c3 remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 309
diff changeset
5 LUAN_BUILD=$LUAN_HOME/build
22ca4f3a65c3 remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 309
diff changeset
6
342
93fa3dbe0c2f rename version to version.sh and change to version 0.1
Franklin Schmidt <fschmidt@gmail.com>
parents: 329
diff changeset
7 VERSION=`scripts/version.sh`
307
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 rm -rf $LUAN_BUILD
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
10 mkdir $LUAN_BUILD
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
11 mkdir $LUAN_BUILD/luan
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
12 mkdir $LUAN_BUILD/luan/jars
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
13
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
14 cd $LUAN_HOME
322
f8ece87df2b1 minor fixes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 320
diff changeset
15 echo "return '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
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=core/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
19 CLASSPATH=$LUAN_HOME/$SRC
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
20 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
21 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
22 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
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=web/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
26 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
27 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
28 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
29 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
30 jar cvf $LUAN_BUILD/luan/jars/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan`
403
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
31 cp $LUAN_HOME/web/ext/* $LUAN_BUILD/luan/jars
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
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
205
3918f92de5fe add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 173
diff changeset
34 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
35 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
36 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
37 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
38 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
39 jar cvf $LUAN_BUILD/luan/jars/luan-logging-$VERSION.jar `find . -name *.class -o -name *.luan`
403
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
40 cp $LUAN_HOME/logging/ext/* $LUAN_BUILD/luan/jars
229
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
41
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
42 cd $LUAN_HOME
229
2a54cb7d1cf4 improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 205
diff changeset
43 SRC=mail/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
44 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
45 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
46 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
47 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
48 jar cvf $LUAN_BUILD/luan/jars/luan-mail-$VERSION.jar `find . -name *.class -o -name *.luan`
403
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
49 cp $LUAN_HOME/mail/ext/* $LUAN_BUILD/luan/jars
234
b25feac318d8 add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 229
diff changeset
50
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
51 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
52 SRC=lucene/src
238
55b4b077e5cc improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 235
diff changeset
53 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
54 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
55 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
56 cd $SRC
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
57 jar cvf $LUAN_BUILD/luan/jars/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan`
403
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
58 cp $LUAN_HOME/lucene/ext/* $LUAN_BUILD/luan/jars
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
59
403
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
60 cd $LUAN_HOME
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
61 SRC=stripe/src
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
62 cd $SRC
407
7fd9f1b7b878 replace LuanPropertyTable with LuanPropertyMeta
Franklin Schmidt <fschmidt@gmail.com>
parents: 403
diff changeset
63 jar cvf $LUAN_BUILD/luan/jars/luan-stripe-$VERSION.jar `find . -name *.luan`
403
637f7ad85654 fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents: 342
diff changeset
64 cp $LUAN_HOME/stripe/ext/* $LUAN_BUILD/luan/jars
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
65
309
6bf47e28e0e5 fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 308
diff changeset
66 cp $LUAN_HOME/scripts/install.sh $LUAN_BUILD/luan
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
67 chmod +x $LUAN_BUILD/luan/install.sh
309
6bf47e28e0e5 fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 308
diff changeset
68 cp $LUAN_HOME/scripts/uninstall.sh $LUAN_BUILD/luan
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
69
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
70 cd $LUAN_BUILD
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
71 tar -cf luan-$VERSION.tar luan
309
6bf47e28e0e5 fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 308
diff changeset
72
317
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 311
diff changeset
73 luan/install.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 311
diff changeset
74
309
6bf47e28e0e5 fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 308
diff changeset
75 echo done