Mercurial Hosting > editor
comparison scripts/install.sh @ 50:c433b19a8dfa
start build
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sat, 24 May 2025 10:01:57 -0600 |
| parents | |
| children | 32631fdbbdf1 |
comparison
equal
deleted
inserted
replaced
| 49:c17c5312e8de | 50:c433b19a8dfa |
|---|---|
| 1 #!/bin/bash | |
| 2 | |
| 3 set -e | |
| 4 | |
| 5 cd $(dirname $0) | |
| 6 | |
| 7 mkdir -p /usr/local/bin | |
| 8 | |
| 9 cat >/usr/local/bin/luan_editor <<End | |
| 10 #!/bin/bash | |
| 11 | |
| 12 export DICTIONARIES=$(pwd)/dictionaries/ | |
| 13 | |
| 14 for i in $(pwd)/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done | |
| 15 CLASSPATH=\$(echo -n \$CLASSPATH | sed 's/^://') | |
| 16 | |
| 17 set +m | |
| 18 | |
| 19 java -Xdock:name="Luan Editor" -classpath $CLASSPATH luan.Luan classpath:luan_editor/editor.luan "$@" 2>&1 | grep --line-buffered -v 'NSRemoteView\|NSSavePanel' & | |
| 20 End | |
| 21 | |
| 22 chmod +x /usr/local/bin/luan_editor | |
| 23 | |
| 24 echo "the command 'luan_editor' has been installed" |
