Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 38 lines (32 sloc) 0.963 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 u…
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 u…
Erik Søe Sørensen authored
10 source "$ERJANG_DIR/env_cfg"
6a1b217 @krestenkrab Create simple script to run the ERLConsole application.
krestenkrab authored
11
f88abd9 Environment (and other) configuration has been reworked; Erjang now u…
Erik Søe Sørensen authored
12 ###########################################################
13 # OS X - specific config
14 if [[ $(uname) == "Darwin" ]]; then
15 OSX_DOCK_ICON="-Xdock:icon=$ERJANG_DIR/erjang_logo4.png"
16 OSX_DOCK_NAME="-Xdock:name=ErjangConsole"
17 fi
18 ###########################################################
19
20 # (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
21 exec java \
6a1b217 @krestenkrab Create simple script to run the ERLConsole application.
krestenkrab authored
22 -server \
23 -Xss1m \
24 -Xmx2g \
075603f @goj Shell script cleanup
goj authored
25 $OSX_DOCK_ICON \
26 $OSX_DOCK_NAME \
f88abd9 Environment (and other) configuration has been reworked; Erjang now u…
Erik Søe Sørensen authored
27 -Derjang.configfile="$PROP_FILE" \
28 -Derjang.erts.version="$ERTS_VSN" \
29 -Derjang.otp.version="$OTP_VSN" \
bf84946 @jetztgradnet bumped version to 0.2
jetztgradnet authored
30 -cp "$ERJANG_DIR/erjang-0.2.jar" erjang.console.ERLConsole \
f88abd9 Environment (and other) configuration has been reworked; Erjang now u…
Erik Søe Sørensen authored
31 \
1c5d903 @krestenkrab Improve ejc (erjang console) startup script.
krestenkrab authored
32 -root "$ERL_ROOT" \
2b50d57 @krestenkrab Update ej/ejc commands
krestenkrab authored
33 +A 10 \
34 +S 1 \
1c5d903 @krestenkrab Improve ejc (erjang console) startup script.
krestenkrab authored
35 +e "$ERTS_VSN" \
6a1b217 @krestenkrab Create simple script to run the ERLConsole application.
krestenkrab authored
36 -home "$HOME" \
f88abd9 Environment (and other) configuration has been reworked; Erjang now u…
Erik Søe Sørensen authored
37 "$@"
Something went wrong with that request. Please try again.