Update mozilla.sh script to detect a wider variety of JVMs. Not part of the build.

This commit is contained in:
blizzard%redhat.com 2002-03-06 17:11:15 +00:00
Родитель 316207a7f5
Коммит e85365bdfb
1 изменённых файлов: 7 добавлений и 15 удалений

Просмотреть файл

@ -82,23 +82,15 @@ function set_jvm_vars() {
JVM_BASE=`basename $JVM_LINK`
JVM_DIR=`echo $JVM_LINK | sed -e s/$JVM_BASE//g`
JVM_COMMAND=$JVM_DIR/java
if [ ! -r $JVM_COMMAND ]; then
JVM_DIR=${JVM_DIR}../../../bin/
# make sure it was found
if [ -z "$JVM_DIR" ]; then
return
fi
# does it exist?
if [ ! -d "$JVM_DIR" ]; then
return
fi
JVM_COMMAND=$JVM_DIR/java
# does the command exist?
if [ ! -r "$JVM_COMMAND" ]; then
return
fi
fi
# export this temporarily - it seems to work with old and new
# versions of the JVM.