Mercurial Hosting > luan
annotate scripts/install.sh @ 1483:97740900c820
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 25 Apr 2020 10:31:49 -0600 |
parents | 04482e2a6ca3 |
children | d80395468b4e |
rev | line source |
---|---|
767
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
1 set -e |
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
2 |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
3 cd `dirname $0` |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
4 |
767
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
5 mkdir -p /usr/local/bin |
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
6 |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
7 cat >/usr/local/bin/luan <<End |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
8 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done |
1380 | 9 SECURITY=`pwd`/jvm.java.security; |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
10 |
1380 | 11 java -classpath \$CLASSPATH -Djava.security.properties="\$SECURITY" luan.Luan "\$@" |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
12 End |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
13 |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
14 chmod +x /usr/local/bin/luan |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
15 |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
16 echo "the command 'luan' has been installed" |