|
|
fi | fi |
| |
##------------------ | ##------------------ |
THISDIR=`dirname $0` |
HENPLUSDIR=$(dirname $(java-config -p henplus)) |
HENPLUSDIR=$THISDIR/../share/henplus |
|
|
|
# not yet installed ? Then look in the build directory |
|
if [ ! -d "$HENPLUSDIR" ] ; then |
|
HENPLUSDIR=$THISDIR/../build |
|
fi |
|
| |
# location of the readline lib. | # location of the readline lib. |
# Modify this, if you installation stores this at a different | # Modify this, if you installation stores this at a different |
# position. | # position. |
LD_LIBRARY_PATH=$THISDIR/../lib:/usr/lib/jni:$LD_LIBRARY_PATH |
LD_LIBRARY_PATH=$(dirname $0)/../lib:$LD_LIBRARY_PATH |
CLASSPATH=$CLASSPATH:$THISDIR/../share/java/libreadline-java.jar |
CLASSPATH=$CLASSPATH:$(java-config -p libreadline-java) |
| |
# you may just throw your own jar files in this dir. | # you may just throw your own jar files in this dir. |
# (like additional JDBC-drivers, that are not in default | # (like additional JDBC-drivers, that are not in default |
|
|
fi | fi |
done | done |
| |
export CLASSPATH LD_LIBRARY_PATH |
export LD_LIBRARY_PATH |
| |
exec $JAVA $JAVA_FLAGS henplus.HenPlus "$@" |
exec $JAVA -cp $CLASSPATH $JAVA_FLAGS henplus.HenPlus "$@" |