* "ensureDir ./lib/xulrunner-*" doesn't work because ensureDir quotes

its argument, causing a directory named xulrunner-* to be created.
  As a result xulrunner couldn't find the extensions directory and
  wouldn't start.

svn path=/nixpkgs/trunk/; revision=4815
This commit is contained in:
Eelco Dolstra 2006-02-15 09:33:54 +00:00
parent 04767dfdd9
commit 2cbcd0bd7a

View File

@ -7,17 +7,18 @@ postInstall() {
# This fixes starting Firefox when there already is a running
# instance. The `firefox' wrapper script actually expects to be
# in the same directory as `run-mozilla.sh', apparently.
libDir=$(cd $out/lib && ls xulrunner-*)
test -n "$libDir"
cd $out/bin
mv xulrunner ../lib/xulrunner-*/
ln -s ../lib/xulrunner-*/xulrunner .
mv xulrunner ../lib/$libDir/
ln -s ../lib/$libDir/xulrunner .
echo "running xulrunner --register-global..."
$out/bin/xulrunner --register-global || true
# xulrunner wants to create these directories at the first startup
cd $out
ensureDir ./lib/xulrunner-*/extensions
ensureDir ./lib/xulrunner-*/updates
ensureDir $out/lib/$libDir/extensions
ensureDir $out/lib/$libDir/updates
}
genericBuild