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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/bin/sh
# -----------------------------------------------------
# Run with -help for usage.
# If $JAVA_HOME is set, editing this script should not be required.
# Send any questions to fchoong@user.sourceforge.net
# -----------------------------------------------------
# the value set here will override the value passed by $JAVA_HOME or the -jdkhome switch
jdkhome=""
jdkhome=""
jargs=""
thread_flag=""
PRG=$0
#
# resolve symlinks
#
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null`
if expr "$link" : '^/' 2> /dev/null >/dev/null; then
PRG="$link"
else
PRG="`dirname $PRG`/$link"
fi
done
progdir=`dirname $PRG`
progname=`basename $0`
# ../ will lead us to the home
dbhome="$progdir/.."
# absolutize dbhome
dbhome=`cd ${dbhome}; pwd`
#
# bring in needed functions
. ${dbhome}/lib/functions
#--------------------------------------------------------------------------------------------------------------
pre_main
#
# let's go
#
cd $dbhome/data
exec "$jdkhome/bin/java" $thread_flag -classpath "$cp" $jargs "org.hsqldb.util.$@"
# and we exit.
|