Mercurial Hosting > editor
view scripts/luan_editor.sh @ 76:1beb4c57c269 default tip
monospaced sans-serif
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 18 Jun 2025 20:20:21 -0600 |
parents | 7f5b3824f4d4 |
children |
line wrap: on
line source
#!/bin/bash set -e DIR="$(dirname $0)" DICTIONARIES="$DIR/dictionaries/" for i in "$DIR"/jars/* ; do CLASSPATH="$CLASSPATH:$i" ; done CLASSPATH="$(echo -n "$CLASSPATH" | sed 's/^://')" mkdir -p ~/.luan_editor set +m if [[ "$(uname)" == "Darwin" ]]; then # Mac crap java -Ddictionaries="$DICTIONARIES" -Xdock:name="Luan Editor" -Duser.home="$HOME" -classpath "$CLASSPATH" luan.Luan classpath:luan_editor/editor.luan "$@" 2>&1 | grep --line-buffered -v 'NSRemoteView\|NSSavePanel' | tee ~/.luan_editor/error.log & else java -Duser.home="$HOME" -Ddictionaries="$DICTIONARIES" -classpath "$CLASSPATH" luan.Luan classpath:luan_editor/editor.luan "$@" 2>&1 | tee ~/.luan_editor/error.log & fi