Mercurial Hosting > luan
annotate scripts/install.sh @ 1826:3cd1d267508c default tip
mikraite links
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 24 Aug 2024 21:36:47 -0600 |
parents | 36dfc31fd607 |
children |
rev | line source |
---|---|
1786 | 1 #!/bin/bash |
2 | |
767
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
3 set -e |
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
4 |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
5 cd `dirname $0` |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
6 |
767
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
7 mkdir -p /usr/local/bin |
fec01f044474
improve install script
Franklin Schmidt <fschmidt@gmail.com>
parents:
313
diff
changeset
|
8 |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
9 cat >/usr/local/bin/luan <<End |
1785 | 10 #!/bin/bash |
11 | |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
12 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done |
1823 | 13 CLASSPATH=$(echo -n $CLASSPATH | sed 's/^://') |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
14 |
1506
d80395468b4e
ssl security in code
Franklin Schmidt <fschmidt@gmail.com>
parents:
1380
diff
changeset
|
15 java -classpath \$CLASSPATH luan.Luan "\$@" |
306
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
16 End |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
17 |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
18 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
|
19 |
7f38793a99ee
add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
20 echo "the command 'luan' has been installed" |