--- mono-tools-1.2.3/docbrowser/monodoc.in~ 2007-01-25 19:36:46.000000000 +0100 +++ mono-tools-1.2.3/docbrowser/monodoc.in 2007-02-07 11:03:36.000000000 +0100 @@ -72,20 +72,7 @@ fi } -if test -n "$MOZILLA_FIVE_HOME"; then - MOZILLA_HOME=$MOZILLA_FIVE_HOME -elif test x@MOZILLA_HOME@ != x; then - if [ -f @MOZILLA_HOME@/chrome/comm.jar ]; then - MOZILLA_HOME=@MOZILLA_HOME@ - fi -elif [ $(which xulrunner 2> /dev/null) ] > /dev/null ; then - MOZILLA_FIVE_HOME=`getdirectory xulrunner` - MOZILLA_HOME=$MOZILLA_FIVE_HOME -elif [ $(which mozilla 2> /dev/null) ] && grep MOZILLA_FIVE_HOME= "$(which mozilla)" > /dev/null ; then - MOZILLA_HOME=$(grep MOZILLA_FIVE_HOME= $(which mozilla) | cut -d '"' -f 2) -elif [ $(which firefox 2> /dev/null) ] && grep MOZILLA_FIVE_HOME= "$(which firefox)" > /dev/null ; then - MOZILLA_HOME=$(grep MOZILLA_FIVE_HOME= $(which firefox) | cut -d '"' -f 2) -fi +MOZILLA_HOME=$(grep moz_libdir= $(which mozilla-firefox) | sed "s/.*=//") if [ -n $LD_LIBRARY_PATH ]; then export LD_LIBRARY_PATH=$MOZILLA_HOME:$LD_LIBRARY_PATH --- mono-tools-1.2.4/ilcontrast/ilcontrast.in~ 2007-04-20 06:42:42.000000000 +0200 +++ mono-tools-1.2.4/ilcontrast/ilcontrast.in 2007-09-09 12:55:58.000000000 +0200 @@ -25,8 +25,8 @@ elif [ $(which xulrunner 2> /dev/null) ] MOZILLA_HOME=$MOZILLA_FIVE_HOME elif [ $(which mozilla 2> /dev/null) ] && grep MOZILLA_FIVE_HOME= "$(which mozilla)" > /dev/null ; then MOZILLA_HOME=$(grep MOZILLA_FIVE_HOME= $(which mozilla) | cut -d '"' -f 2) -elif [ $(which firefox 2> /dev/null) ] && grep MOZILLA_FIVE_HOME= "$(which firefox)" > /dev/null ; then - MOZILLA_HOME=$(grep MOZILLA_FIVE_HOME= $(which firefox) | cut -d '"' -f 2) +elif [ $(which firefox 2> /dev/null) ] && grep moz_libdir= "$(which firefox)" > /dev/null ; then + MOZILLA_HOME=$(grep moz_libdir= $(which firefox) | cut -d '=' -f 2) fi if [ -n $LD_LIBRARY_PATH ]; then