mirror of https://github.com/jenkinsci/jenkins.git
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:
parent
c1fc140502
commit
3c2adf092c
|
@ -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" "$@"
|
Loading…
Reference in New Issue