use let wherever possible in our code
[mandelbrot.git] / mandelbrot
CommitLineData
37b05b56
RK
1#!/bin/sh
2
3progname="$0"
4curdir=`dirname "$progname"`
5app_ini="$curdir/xulapp/application.ini"
6
7if test -e "/opt/xulrunner-trunk/xulrunner"; then
8 xulrunner="/opt/xulrunner-trunk/xulrunner"
9fi
10if test -z "$xulrunner" && test -e "/opt/firefox-trunk/firefox"; then
11 xulrunner="/opt/firefox-trunk/firefox"
12fi
13if test -z "$xulrunner" && test -e "/usr/local/xulrunner/xulrunner"; then
14 xulrunner="/usr/local/xulrunner/xulrunner"
15fi
16if test -z "$xulrunner"; then
17 if test -n `which xulrunner`; then
18 xulrunner=`which xulrunner`
19 else
20 echo "XULRunner not found!"
21 exit 1
22 fi
23fi
24
25# add -jsconsole for debugging
26
27$xulrunner --app $app_ini -jsconsole