blob: ed85600141bda43f44cb56e4e383501f43b152c5 [file] [log] [blame]
#!/bin/sh
##############################################################################
## ##
## Groovy JVM Bootstrap for UN*X ##
## ##
## use -cp or -classpath just as in java to use a custom classpath ##
## ##
##############################################################################
##
## $Revision$
## $Date$
##
GROOVY_APP_NAME=Groovy
# resolve links - $0 may be a soft-link
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
DIRNAME=`dirname "$PRG"`
. "$DIRNAME/startGroovy"
startGroovy groovy.ui.GroovyMain "$@"