Mercurial Hosting > luan
annotate build.sh @ 234:b25feac318d8
add lucene jar and minor changes
git-svn-id: https://luan-java.googlecode.com/svn/trunk@235 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 02 Oct 2014 20:08:39 +0000 |
parents | 2a54cb7d1cf4 |
children |
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 |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
3 cd `dirname $0` |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
4 HOME=`pwd` |
172
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
5 |
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
6 rm dist/*.jar |
4edbf3204ca6
add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
7 |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
8 set -e |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
9 |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
10 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
|
11 |
173
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
12 cd $HOME |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
13 SRC=core/src |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
14 CLASSPATH=$HOME/$SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
15 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
|
16 cd $SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
17 jar cvf $HOME/dist/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan` |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
18 |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
19 cd $HOME |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
20 SRC=web/src |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
21 CLASSPATH=$HOME/core/src:$HOME/$SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
22 for i in $HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
23 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
|
24 cd $SRC |
58c6ca5d4524
fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
172
diff
changeset
|
25 jar cvf $HOME/dist/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
|
26 |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
27 cd $HOME |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
28 SRC=logging/src |
229
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
29 #CLASSPATH=$HOME/core/src:$HOME/$SRC |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
30 #for i in $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
|
31 #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
|
32 cd $SRC |
3918f92de5fe
add logging component
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
173
diff
changeset
|
33 jar cvf $HOME/dist/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
|
34 |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
35 cd $HOME |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
36 SRC=mail/src |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
37 CLASSPATH=$HOME/core/src:$HOME/$SRC |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
38 for i in $HOME/mail/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
39 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
|
40 cd $SRC |
2a54cb7d1cf4
improve security
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
205
diff
changeset
|
41 jar cvf $HOME/dist/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
|
42 |
b25feac318d8
add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
229
diff
changeset
|
43 cd $HOME |
b25feac318d8
add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
229
diff
changeset
|
44 SRC=lucene/src |
b25feac318d8
add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
229
diff
changeset
|
45 CLASSPATH=$HOME/core/src:$HOME/$SRC |
b25feac318d8
add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
229
diff
changeset
|
46 for i in $HOME/lucene/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done |
b25feac318d8
add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
229
diff
changeset
|
47 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
|
48 cd $SRC |
b25feac318d8
add lucene jar and minor changes
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
229
diff
changeset
|
49 jar cvf $HOME/dist/luan-lucene-$VERSION.jar `find . -name *.class -o -name *.luan` |