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
Родитель c08a6b4f8a
Коммит 3661ccb94d
1 изменённых файлов: 7 добавлений и 15 удалений

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

@ -82,22 +82,14 @@ function set_jvm_vars() {
JVM_BASE=`basename $JVM_LINK`
JVM_DIR=`echo $JVM_LINK | sed -e s/$JVM_BASE//g`
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
if [ ! -r $JVM_COMMAND ]; then
JVM_DIR=${JVM_DIR}../../../bin/
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