Mercurial Hosting > luan
annotate scripts/build-luan.sh @ 348:6fd016d35ec1 0.2
improve Hosting and fix mmake
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 12 Apr 2015 08:35:23 -0600 |
parents | 93fa3dbe0c2f |
children | 637f7ad85654 |
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` |
205
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
31 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
32 cd $LUAN_HOME |
205
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
33 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
|
34 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
|
35 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
|
36 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
|
37 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
38 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
|
39 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
40 cd $LUAN_HOME |
229
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
41 SRC=mail/src |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
42 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
|
43 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
|
44 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
|
45 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
46 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
|
47 |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
48 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
|
49 SRC=lucene/src |
238
55b4b077e5cc
improve scripts
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
235
diff
changeset
|
50 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
|
51 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
|
52 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
|
53 cd $SRC |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
54 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
|
55 |
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 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
|
60 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
61 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
|
62 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
|
63 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
|
64 |
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
65 cd $LUAN_BUILD |
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
66 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
|
67 |
317
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
68 luan/install.sh |
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
69 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
70 echo done |