Mercurial Hosting > hghosting
diff luan/install.sh @ 0:dfc36e7ed22c
init
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Thu, 12 May 2022 13:51:59 +0400 |
parents | |
children | b14073ab9d07 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/luan/install.sh Thu May 12 13:51:59 2022 +0400 @@ -0,0 +1,15 @@ +set -e + +cd `dirname $0` + +mkdir -p /usr/local/bin + +cat >/usr/local/bin/luan <<End +for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done + +java -classpath \$CLASSPATH luan.Luan "\$@" +End + +chmod +x /usr/local/bin/luan + +echo "the command 'luan' has been installed"