blob: ce8371101c019b6d2fb49dcab69d2656a82e0e15 [file] [log] [blame]
#!/bin/sh
##############################################################################
## ##
## Groovy Shell script for UN*X ##
## ##
##############################################################################
##
## $Revision$
## $Id$
##
GROOVY_APP_NAME=GroovyShell
# 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"
if [ "x$OLDSHELL" != "x" ]; then
startGroovy groovy.ui.InteractiveShell "$@"
else
startGroovy org.codehaus.groovy.tools.shell.Main "$@"
fi