comparison 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
comparison
equal deleted inserted replaced
20:8b4481769cc6 21:b14073ab9d07
1 #!/bin/bash
2
1 set -e 3 set -e
2 4
3 cd `dirname $0` 5 cd `dirname $0`
4 6
5 mkdir -p /usr/local/bin 7 mkdir -p /usr/local/bin
6 8
7 cat >/usr/local/bin/luan <<End 9 cat >/usr/local/bin/luan <<End
10 #!/bin/bash
11
8 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done 12 for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done
13 CLASSPATH=$(echo -n $CLASSPATH | sed 's/^://')
9 14
10 java -classpath \$CLASSPATH luan.Luan "\$@" 15 java -classpath \$CLASSPATH luan.Luan "\$@"
11 End 16 End
12 17
13 chmod +x /usr/local/bin/luan 18 chmod +x /usr/local/bin/luan