Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 30 lines (25 sloc) 0.751 kb
075603f @goj Shell script cleanup
goj authored
1 #!/bin/bash
6a1b217 @krestenkrab Create simple script to run the ERLConsole application.
krestenkrab authored
2
1c5d903 @krestenkrab Improve ejc (erjang console) startup script.
krestenkrab authored
3 ## Script to run the ERLConsole
4 ##
5
075603f @goj Shell script cleanup
goj authored
6 EJC_CMD=`which "$0"`
fe03ddf @krestenkrab More script clean up; bsd/macosx does not support -m option to readlink.
krestenkrab authored
7 while LINK=`readlink "$EJC_CMD"`; do EJC_CMD=$LINK; done
f88abd9 Environment (and other) configuration has been reworked; Erjang now uses...
Erik Søe Sørensen authored
8 ERJANG_DIR=`dirname "$EJC_CMD"`
6a1b217 @krestenkrab Create simple script to run the ERLConsole application.
krestenkrab authored
9
f88abd9 Environment (and other) configuration has been reworked; Erjang now uses...
Erik Søe Sørensen authored
10 ###########################################################
11 # OS X - specific config
12 if [[ $(uname) == "Darwin" ]]; then
13 OSX_DOCK_ICON="-Xdock:icon=$ERJANG_DIR/erjang_logo4.png"
14 OSX_DOCK_NAME="-Xdock:name=ErjangConsole"
15 fi
16 ###########################################################
17
18 # (TODO: OSX_DOCK variable expansions should expand into only one token - or zero, on non-OSX platforms.)
1c5d903 @krestenkrab Improve ejc (erjang console) startup script.
krestenkrab authored
19 exec java \
6a1b217 @krestenkrab Create simple script to run the ERLConsole application.
krestenkrab authored
20 -server \
21 -Xss1m \
22 -Xmx2g \
075603f @goj Shell script cleanup
goj authored
23 $OSX_DOCK_ICON \
24 $OSX_DOCK_NAME \
bf84946 @jetztgradnet bumped version to 0.2
jetztgradnet authored
25 -cp "$ERJANG_DIR/erjang-0.2.jar" erjang.console.ERLConsole \
f88abd9 Environment (and other) configuration has been reworked; Erjang now uses...
Erik Søe Sørensen authored
26 \
2b50d57 @krestenkrab Update ej/ejc commands
krestenkrab authored
27 +A 10 \
28 +S 1 \
f88abd9 Environment (and other) configuration has been reworked; Erjang now uses...
Erik Søe Sørensen authored
29 "$@"
Something went wrong with that request. Please try again.