Mercurial Hosting > hghosting
annotate luan/install.sh @ 21:b14073ab9d07
update luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 14 Sep 2024 22:17:26 -0600 |
parents | dfc36e7ed22c |
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" |