Mercurial Hosting > luan
annotate scripts/build-luan.sh @ 1484:1fa6e8ec2d53
lucene.logging cleanup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 25 Apr 2020 11:14:25 -0600 |
parents | 1437fb1f0956 |
children | c8f4867fd083 |
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`/.. |
1455 | 4 LUANHOME=`pwd` |
311
22ca4f3a65c3
remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
309
diff
changeset
|
5 |
1123 | 6 rm -rf build |
7 mkdir -p build/luan/jars | |
1455 | 8 cp lib/* build/luan/jars |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
9 |
692
7bd97d642f37
delete class files in build
Franklin Schmidt <fschmidt@gmail.com>
parents:
521
diff
changeset
|
10 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
|
11 |
1123 | 12 . classpath.sh |
1455 | 13 |
14 cd $LUANHOME/src | |
15 javac -classpath $CLASSPATH `find . -name *.java` | |
16 jar cvf $LUANHOME/build/luan/jars/luan.jar `find . -name *.class -o -name *.luan` | |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
17 |
1455 | 18 cd $LUANHOME/slf4j/src |
19 javac -classpath $CLASSPATH `find . -name *.java` | |
20 jar cvf $LUANHOME/build/luan/jars/slf4j-goodjava.jar `find . -name *.class -o -name *.luan` | |
21 | |
22 cd $LUANHOME | |
1123 | 23 cp scripts/install.sh build/luan |
24 chmod +x build/luan/install.sh | |
25 cp scripts/uninstall.sh build/luan | |
1380 | 26 cp scripts/jvm.java.security build/luan |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
27 |
1123 | 28 cd build |
1296 | 29 VERSION=`java -classpath $CLASSPATH luan.Luan classpath:luan/version.luan` |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
30 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
|
31 |
317
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
32 luan/install.sh |
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
33 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
34 echo done |