зеркало из https://github.com/mozilla/pjs.git
Update mozilla.sh script to detect a wider variety of JVMs. Not part of the build.
This commit is contained in:
Родитель
316207a7f5
Коммит
e85365bdfb
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче