Mercurial Hosting > hghosting
annotate luan/install.sh @ 25:8a588847d730 default tip
update luan
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 07 Oct 2025 17:35:13 -0600 |
| parents | b14073ab9d07 |
| children |
| rev | line source |
|---|---|
| 21 | 1 #!/bin/bash |
| 2 | |
| 0 | 3 set -e |
| 4 | |
| 5 cd `dirname $0` | |
| 6 | |
| 7 mkdir -p /usr/local/bin | |
| 8 | |
| 9 cat >/usr/local/bin/luan <<End | |
| 21 | 10 #!/bin/bash |
| 11 | |
| 0 | 12 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done |
| 21 | 13 CLASSPATH=$(echo -n $CLASSPATH | sed 's/^://') |
| 0 | 14 |
| 15 java -classpath \$CLASSPATH luan.Luan "\$@" | |
| 16 End | |
| 17 | |
| 18 chmod +x /usr/local/bin/luan | |
| 19 | |
| 20 echo "the command 'luan' has been installed" |
