Mercurial Hosting > editor
view 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 |
line wrap: on
line source
#!/bin/bash set -e cd $(dirname $0) mkdir -p /usr/local/bin cat >/usr/local/bin/luan_editor <<End #!/bin/bash export DICTIONARIES=$(pwd)/dictionaries/ for i in $(pwd)/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done CLASSPATH=\$(echo -n \$CLASSPATH | sed 's/^://') set +m java -Xdock:name="Luan Editor" -classpath $CLASSPATH luan.Luan classpath:luan_editor/editor.luan "$@" 2>&1 | grep --line-buffered -v 'NSRemoteView\|NSSavePanel' & End chmod +x /usr/local/bin/luan_editor echo "the command 'luan_editor' has been installed"