71
|
1 #!/bin/bash
|
|
2 set -e
|
|
3
|
75
|
4 DIR="$(dirname $0)"
|
71
|
5
|
75
|
6 DICTIONARIES="$DIR/dictionaries/"
|
|
7
|
|
8 for i in "$DIR"/jars/* ; do CLASSPATH="$CLASSPATH:$i" ; done
|
71
|
9 CLASSPATH="$(echo -n "$CLASSPATH" | sed 's/^://')"
|
|
10
|
|
11 mkdir -p ~/.luan_editor
|
|
12
|
|
13 set +m
|
|
14
|
|
15 if [[ "$(uname)" == "Darwin" ]]; then # Mac crap
|
75
|
16 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 &
|
71
|
17 else
|
|
18 java -Duser.home="$HOME" -Ddictionaries="$DICTIONARIES" -classpath "$CLASSPATH" luan.Luan classpath:luan_editor/editor.luan "$@" 2>&1 | tee ~/.luan_editor/error.log &
|
|
19 fi
|