Permalink
Browse files

Create simple script to run the ERLConsole application.

  • Loading branch information...
1 parent 0f74956 commit 6a1b217029ffb62cca434665cc460fc6e0a1a55f @krestenkrab krestenkrab committed Jun 8, 2010
Showing with 28 additions and 0 deletions.
  1. +28 −0 ejc
  2. BIN erjang_logo4.png
View
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+EJC_CMD=$0
+while [ -h "$EJC_CMD" ]; do
+ ls=`ls -ld "$EJC_CMD"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/' > /dev/null; then
+ EJC_CMD="$link"
+ else
+ EJC_CMD="`dirname $EJC_CMD`/$link"
+ fi
+done
+
+EJC_BIN=`dirname "$EJC_CMD"`
+
+java \
+ -server \
+ -Xss1m \
+ -Xmx2g \
+ -Xdock:icon=$EJC_BIN/erjang_logo4.png \
+ -Derj.threads=1 \
+ -cp $EJC_BIN/erjang-0.1.jar erjang.console.ERLConsole \
+ -root /Users/krab/Projects/otp-5.8 \
+ +e 5.8 \
+ -name erjang@`hostname` \
+ -home "$HOME" \
+ $*
+
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a1b217

Please sign in to comment.