Mercurial Hosting > hghosting
annotate luan/install.sh @ 23:7c9a45368af2 default tip
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 04 Oct 2024 12:06:16 -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" |