annotate scripts/install.sh @ 1785:39d2be9784ab

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 Dec 2023 21:13:30 -0700
parents d80395468b4e
children bda4ec615c5b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
1785
Franklin Schmidt <fschmidt@gmail.com>
parents: 1506
diff changeset
8 #!/bin/bash
Franklin Schmidt <fschmidt@gmail.com>
parents: 1506
diff changeset
9
306
7f38793a99ee add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
10 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done
7f38793a99ee add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
11
1506
d80395468b4e ssl security in code
Franklin Schmidt <fschmidt@gmail.com>
parents: 1380
diff changeset
12 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
13 End
7f38793a99ee add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
14
7f38793a99ee add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
15 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
16
7f38793a99ee add tar-luan.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
17 echo "the command 'luan' has been installed"