X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=blobdiff_plain;f=mandelbrot;h=7d05df5a2ba0e477bb200bc566dd1bf74eb49eee;hp=62bb8d82888c6296820bd96a70d4b4ca96969c85;hb=e9524eacee04f8fe09436329ae0bcf9819389c67;hpb=5366c7d6b3665fbf862421932f35969ef027801c;ds=sidebyside diff --git a/mandelbrot b/mandelbrot index 62bb8d8..7d05df5 100755 --- a/mandelbrot +++ b/mandelbrot @@ -51,12 +51,19 @@ 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