X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=blobdiff_plain;f=mandelbrot;h=7d05df5a2ba0e477bb200bc566dd1bf74eb49eee;hp=33c4c8ff12c57fd24b29db6aafc246aea7a523e2;hb=2eed6617e0c9d2a5a54b578bd67e86e100663ffb;hpb=5b823560e478cc748535545b9091a731777325c3 diff --git a/mandelbrot b/mandelbrot index 33c4c8f..7d05df5 100755 --- a/mandelbrot +++ b/mandelbrot @@ -51,14 +51,21 @@ if test -z "$xulrunner" && test -e "/usr/local/xulrunner/xulrunner"; then xulrunner="/usr/local/xulrunner/xulrunner" fi if test -z "$xulrunner"; then - if test -n `which xulrunner`; then - xulrunner=`which xulrunner` - else - echo "XULRunner not found!" - exit 1 - fi + # catch the last one of those in versioned directories + for xrbin in /usr/local/lib/xulrunner-*/xulrunner; do + if test -e "$xrbin"; then + xulrunner="$xrbin" + fi + done +fi +if test -z "$xulrunner"; then + xulrunner=`which xulrunner` +fi +if test -z "$xulrunner"; then + echo "XULRunner not found!" + exit 1 fi # add -jsconsole for debugging -$xulrunner --app $app_ini -jsconsole +$xulrunner --app $app_ini