2 # Wrapper around xulrunner to start the xulrunner application conkeror
3 # Written by Axel Beckert <abe@deuxchevaux.org> for the Debian Project
5 # Find an appropriate xulrunner binary
7 for xr in xulrunner-1.9.1 xulrunner-1.9.2 xulrunner-1.9 xulrunner; do
9 if [ -n "$XRTMP" -a -x "$XRTMP" ]; then
10 if expr `$XRTMP --gre-version | cut -d . -f 1,2` '>=' 1.9 > /dev/null; then
11 # xulrunner is version 1.9 or higher, take it
15 # xulrunner is older than version 1.9, forget it
16 XRTMP=/usr/lib/$xr/xulrunner
17 if [ -x $XRTMP ]; then
18 if expr `$XRTMP --gre-version | cut -d . -f 1,2` '>=' 1.9 > /dev/null; then
19 # xulrunner is a 1.9 version, take it
28 if [ -z "$XULRUNNER" ]; then
29 echo "xulrunner version 1.9 required, but not found. Bailing out." 1>&2
33 if [ "$*" = "--help" ]; then
34 errormsg="`exec $XULRUNNER /usr/share/conkeror/application.ini \"$@\" 2>&1`"
35 echo "$errormsg" | sed -e "s:/[^ ]*/xulrunner-bin:$0:; /-\(width\|height\)/d" 1>&2
37 exec $XULRUNNER /usr/share/conkeror/application.ini "$@"