Mercurial Hosting > luan
annotate scripts/build-luan.sh @ 711:217b047afd93
fix line numbers
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 19 May 2016 15:47:48 -0600 |
parents | 7bd97d642f37 |
children | 11839152caef |
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 |
521
8a217fe5b4f3
cleaner LuanState.onClose()
Franklin Schmidt <fschmidt@gmail.com>
parents:
493
diff
changeset
|
6 SLF4J=$LUAN_HOME/logging/ext/slf4j-api-1.6.4.jar |
311
22ca4f3a65c3
remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
309
diff
changeset
|
7 |
342
93fa3dbe0c2f
rename version to version.sh and change to version 0.1
Franklin Schmidt <fschmidt@gmail.com>
parents:
329
diff
changeset
|
8 VERSION=`scripts/version.sh` |
307
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 rm -rf $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 |
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
12 mkdir $LUAN_BUILD/luan |
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
13 mkdir $LUAN_BUILD/luan/jars |
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
14 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
15 cd $LUAN_HOME |
441
aedb90df53ce
rename Version.luan to version.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
407
diff
changeset
|
16 echo "return 'Luan $VERSION'" >core/src/luan/version.luan |
692
7bd97d642f37
delete class files in build
Franklin Schmidt <fschmidt@gmail.com>
parents:
521
diff
changeset
|
17 find . -name *.class -delete |
172
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
18 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
19 cd $LUAN_HOME |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
20 SRC=core/src |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
21 CLASSPATH=$LUAN_HOME/$SRC |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
22 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
|
23 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
24 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
|
25 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
26 cd $LUAN_HOME |
493 | 27 SRC=http/src |
521
8a217fe5b4f3
cleaner LuanState.onClose()
Franklin Schmidt <fschmidt@gmail.com>
parents:
493
diff
changeset
|
28 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J |
493 | 29 for i in $LUAN_HOME/http/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
|
30 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
|
31 cd $SRC |
493 | 32 jar cvf $LUAN_BUILD/luan/jars/luan-http-$VERSION.jar `find . -name *.class -o -name *.luan` |
33 cp $LUAN_HOME/http/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
|
34 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
35 cd $LUAN_HOME |
205
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
36 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
|
37 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
|
38 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
|
39 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
|
40 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
41 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
|
42 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
|
43 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
44 cd $LUAN_HOME |
229
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
45 SRC=mail/src |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
46 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
|
47 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
|
48 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
|
49 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
50 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
|
51 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
|
52 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
53 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
|
54 SRC=lucene/src |
521
8a217fe5b4f3
cleaner LuanState.onClose()
Franklin Schmidt <fschmidt@gmail.com>
parents:
493
diff
changeset
|
55 CLASSPATH=$LUAN_HOME/core/src:$LUAN_HOME/$SRC:$SLF4J |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
56 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
|
57 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
|
58 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
59 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
|
60 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
|
61 |
403
637f7ad85654
fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents:
342
diff
changeset
|
62 cd $LUAN_HOME |
637f7ad85654
fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents:
342
diff
changeset
|
63 SRC=stripe/src |
637f7ad85654
fix build to include stripe
Franklin Schmidt <fschmidt@gmail.com>
parents:
342
diff
changeset
|
64 cd $SRC |
407
7fd9f1b7b878
replace LuanPropertyTable with LuanPropertyMeta
Franklin Schmidt <fschmidt@gmail.com>
parents:
403
diff
changeset
|
65 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
|
66 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
|
67 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
68 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
|
69 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
|
70 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
|
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 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
74 |
317
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
75 luan/install.sh |
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
76 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
77 echo done |