Mercurial Hosting > hghosting
annotate luan/install.sh @ 22:e65668ff8822
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 15 Sep 2024 08:21:43 -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" |