view scripts/luan_editor.sh @ 75:7f5b3824f4d4 default tip

add Windows
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 18 Jun 2025 18:57:34 -0600
parents 99ebb6176d2f
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