re-adding as a binary file

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1384 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke 2006-12-19 15:15:16 +00:00
parent c1fc140502
commit 3c2adf092c
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
#!/bin/sh
if [ "$HUDSON_HOME" = "" ]; then
echo HUDSON_HOME is not set
exit 1
fi
# search the installation directory
PRG=$0
progname=`basename $0`
saveddir=`pwd`
cd "`dirname $PRG`"
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
BINDIR=`dirname "$PRG"`/..
# make it fully qualified
cd "$saveddir"
BINDIR="`cd "$BINDIR" && pwd`"
exec java -jar "$BINDIR/lib/hudson-*.jar" "$@"