make mandelbrot build and roughly work as an extension
[mandelbrot.git] / mandelbrot
index 3a58794e3ccb2d5235f868c879d25763f9be1bfd..f332251f3eadd450543d441c9a4f310f80cd07ce 100755 (executable)
@@ -58,6 +58,14 @@ if test -z "$xulrunner"; then
     fi
   done
 fi
+if test -z "$xulrunner"; then
+  # catch the last one of those in versioned directories
+  for xrbin in /opt/mozilla/xulrunner-*/xulrunner; do
+    if test -e "$xrbin"; then
+      xulrunner="$xrbin"
+    fi
+  done
+fi
 if test -z "$xulrunner"; then
   xulrunner=`which xulrunner`
 fi