annotate scripts/build-luan.sh @ 1403:5e1075226662

remove backup dir
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 17 Sep 2019 01:44:18 -0400
parents 04482e2a6ca3
children 1437fb1f0956
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
1123
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
5 rm -rf build
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
6 mkdir -p build/luan/jars
307
4bf49f0a46b3 improve build process
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 286
diff changeset
7
692
7bd97d642f37 delete class files in build
Franklin Schmidt <fschmidt@gmail.com>
parents: 521
diff changeset
8 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
9
1123
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
10 . classpath.sh
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
11 javac -classpath $CLASSPATH `find src -name *.java`
1296
040c98e1f837 simplify build
Franklin Schmidt <fschmidt@gmail.com>
parents: 1123
diff changeset
12 cd src; jar cvf ../build/luan/jars/luan.jar `find . -name *.class -o -name *.luan`; cd ..
1123
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
13 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
14
1123
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
15 cp scripts/install.sh build/luan
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
16 chmod +x build/luan/install.sh
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
17 cp scripts/uninstall.sh build/luan
1380
04482e2a6ca3 fix ssl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1296
diff changeset
18 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
19
1123
f2eb8295033f improve scripts
Franklin Schmidt <fschmidt@gmail.com>
parents: 1080
diff changeset
20 cd build
1296
040c98e1f837 simplify build
Franklin Schmidt <fschmidt@gmail.com>
parents: 1123
diff changeset
21 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
22 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
23
317
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 311
diff changeset
24 luan/install.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 311
diff changeset
25
309
6bf47e28e0e5 fix build
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 308
diff changeset
26 echo done