3 # (C) Copyright 2008-2010 John J. Foerch
5 # Use, modification, and distribution are subject to the terms specified in the
8 # This bash script can be used to launch conkeror on *nix systems that
9 # support symlinking. Create a symlink to this script in a directory
10 # in your executable search path.
14 # sudo ln -s /path/to/conkeror/contrib/run-conkeror /usr/local/bin/conkeror
18 thisscript
=$
(readlink
-f "$0")
19 contrib
=${thisscript%/*}
20 conkeror
=${contrib%/*}
23 versions
=$
{CONKEROR_XULRUNNER_VERSION
:-$
(grep -h '^\[' "$HOME"/.gre.d
/*.conf
/etc
/gre.d
/*.conf
2>/dev
/null \
24 |
sed -e 's/^\[\(.*\)\]/\1/' \
26 for version
in ${versions}; do
27 xrdir
=$
(grep -Fxh -A2 -m1 "[$version]" "$HOME"/.gre.d
/*.conf
/etc
/gre.d
/*.conf
2>/dev
/null |\
30 xulrunner
="${xrdir%/}/xulrunner"
31 if [ -x "$xulrunner" ]; then
32 exec "$xulrunner" "$conkeror"/application.ini
"$@"
36 ## if we get this far, we didn't find xulrunner
37 echo "$0: cannot continue. XULRunner not found." >&2