/
grape
35 lines (27 loc) · 986 Bytes
/
grape
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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=Grape
# 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 org.codehaus.groovy.tools.GrapeMain "$@"