5 ## Whether to build the xulapp. This is just a shortcut for developers and hackers.
12 ## Install prefix. Conkeror will be installed to $PREFIX/lib/conkeror and a
13 ## symlink to the stub binary will be placed in $PREFIX/bin/conkeror
17 while [[ "$1" = -* ]]; do
20 -prefix) PREFIX
="${2%/}" ; shift ;;
22 echo "Unrecognized option. Please read the source."
30 function assert_conkeror_src
() {
31 if [[ ! -e build.sh
]]; then
32 echo "The current directory does not appear to contain the Conkeror source code."
38 if [[ -n "$BUILD" ]]; then
39 ## -build has been requested.
40 ## assert we are in the conkeror source directory
45 ### conkeror.xulapp should be in the current directory
46 if [[ ! -e conkeror.xulapp
]]; then
47 echo "conkeror.xulapp not found. install cannot continue."
55 echo -n "Installing conkeror to $PREFIX/lib/conkeror ..."
56 xulrunner
--install-app conkeror.xulapp
"$PREFIX/lib/"
59 if [[ -e "$PREFIX/bin/conkeror" ]]; then
60 rm "$PREFIX/bin/conkeror"
62 echo -n "Creating symlink to stub binary in $PREFIX/bin ..."
63 pushd "$PREFIX/bin" > /dev
/null
64 ln -s ..
/lib
/conkeror
/conkeror conkeror
68 echo "Done. If you get an error that the correct GRE version"
69 echo "cannot be found, try one of the following commands:"
70 echo "for system-wide install: xulrunner --register-global"
71 echo "for single-user install: xulrunner --register-user"