Mercurial Hosting > luan
annotate scripts/build-luan.sh @ 1832:d55c3eaf21d7
add jar
author | clarkton <ibraclarkton@gmail.com> |
---|---|
date | Wed, 11 Dec 2024 17:17:56 +0000 |
parents | aed284cae1f0 |
children |
rev | line source |
---|---|
1787 | 1 #!/bin/bash |
2 | |
311
22ca4f3a65c3
remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
309
diff
changeset
|
3 set -e |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
4 |
311
22ca4f3a65c3
remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
309
diff
changeset
|
5 cd `dirname $0`/.. |
1455 | 6 LUANHOME=`pwd` |
311
22ca4f3a65c3
remove LUAN_HOME
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
309
diff
changeset
|
7 |
1123 | 8 rm -rf build |
9 mkdir -p build/luan/jars | |
1455 | 10 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
|
11 |
692
7bd97d642f37
delete class files in build
Franklin Schmidt <fschmidt@gmail.com>
parents:
521
diff
changeset
|
12 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
|
13 |
1648 | 14 . $LUANHOME/classpath.sh |
1455 | 15 |
16 cd $LUANHOME/src | |
17 javac -classpath $CLASSPATH `find . -name *.java` | |
18 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
|
19 |
1455 | 20 cd $LUANHOME/slf4j/src |
21 javac -classpath $CLASSPATH `find . -name *.java` | |
22 jar cvf $LUANHOME/build/luan/jars/slf4j-goodjava.jar `find . -name *.class -o -name *.luan` | |
23 | |
24 cd $LUANHOME | |
1123 | 25 cp scripts/install.sh build/luan |
26 chmod +x build/luan/install.sh | |
27 cp scripts/uninstall.sh build/luan | |
307
4bf49f0a46b3
improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
286
diff
changeset
|
28 |
1123 | 29 cd build |
1296 | 30 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
|
31 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
|
32 |
1648 | 33 luan/install.sh || sudo luan/install.sh |
317
c730ff1e4bae
minor
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
311
diff
changeset
|
34 |
309
6bf47e28e0e5
fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
308
diff
changeset
|
35 echo done |