annotate luan/install.sh @ 7:46f6b69e8b10

better handling of missing mail_info
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 03 Jun 2022 09:57:45 -0600
parents dfc36e7ed22c
children b14073ab9d07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 set -e
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 cd `dirname $0`
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 mkdir -p /usr/local/bin
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 cat >/usr/local/bin/luan <<End
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 java -classpath \$CLASSPATH luan.Luan "\$@"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 End
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 chmod +x /usr/local/bin/luan
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 echo "the command 'luan' has been installed"