From 7f432959d04271e0dc1e1ae782c95779cadc24e4 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Sat, 26 Jul 2003 07:51:05 +0000 Subject: [PATCH] Remove check for MOZILLA_FIVE_HOME in the environment; it causes conflicts with firebird (bug 172706) --- browser/app/mozilla.in | 75 ++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 40 deletions(-) diff --git a/browser/app/mozilla.in b/browser/app/mozilla.in index 6cf41bb7348..80ccdef6562 100755 --- a/browser/app/mozilla.in +++ b/browser/app/mozilla.in @@ -16,7 +16,7 @@ # Reserved. # -## $Id: mozilla.in,v 1.1 2002-08-21 19:21:36 bryner%netscape.com Exp $ +## $Id: mozilla.in,v 1.2 2003-07-26 07:51:05 bryner%brianryner.com Exp $ ## ## Usage: ## @@ -35,47 +35,42 @@ moz_libdir=%MOZAPPDIR% MRE_HOME=%MREDIR% -# honor MOZILLA_FIVE_HOME if it's there -if [ -n "$MOZILLA_FIVE_HOME" ] ; then - dist_bin="$MOZILLA_FIVE_HOME" +# Use run-mozilla.sh in the current dir if it exists +# If not, then start resolving symlinks until we find run-mozilla.sh +found=0 +progname=$0 +curdir=`dirname "$progname"` +run_moz="$curdir/run-mozilla.sh" +if test -x "$run_moz"; then + dist_bin=$curdir + found=1 else - # Use run-mozilla.sh in the current dir if it exists - # If not, then start resolving symlinks until we find run-mozilla.sh - found=0 - progname=$0 - curdir=`dirname "$progname"` - run_moz="$curdir/run-mozilla.sh" - if test -x "$run_moz"; then - dist_bin=$curdir - found=1 - else - here=`/bin/pwd` - while [ -h "$progname" ]; do - bn=`basename "$progname"` - cd `dirname "$progname"` - progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' ` - if [ ! -x "$progname" ]; then - break - fi - curdir=`dirname "$progname"` - run_moz="$curdir/run-mozilla.sh" - if [ -x "$run_moz" ]; then - cd "$curdir" - dist_bin=`pwd` - found=1 - break - fi - done - cd "$here" - fi - if [ $found = 0 ]; then - # Check default compile-time libdir - if [ -x "$moz_libdir/run-mozilla.sh" ]; then - dist_bin=$moz_libdir - else - echo "Cannot find mozilla runtime directory. Exiting." - exit 1 + here=`/bin/pwd` + while [ -h "$progname" ]; do + bn=`basename "$progname"` + cd `dirname "$progname"` + progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' ` + if [ ! -x "$progname" ]; then + break fi + curdir=`dirname "$progname"` + run_moz="$curdir/run-mozilla.sh" + if [ -x "$run_moz" ]; then + cd "$curdir" + dist_bin=`pwd` + found=1 + break + fi + done + cd "$here" +fi +if [ $found = 0 ]; then + # Check default compile-time libdir + if [ -x "$moz_libdir/run-mozilla.sh" ]; then + dist_bin=$moz_libdir + else + echo "Cannot find mozilla runtime directory. Exiting." + exit 1 fi fi