1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00
nixpkgs/pkgs/development/interpreters/xulrunner/wrapper/builder.sh
Eelco Dolstra 93a49a00f1 * Use xulrunner for chatzilla.
svn path=/nixpkgs/trunk/; revision=13162
2008-10-30 13:13:43 +00:00

22 lines
365 B
Bash

source $stdenv/setup
ensureDir $out/bin
wrapper="$out/bin/$launcher"
if test -e $xulrunner/bin/xulrunner; then
runner=$xulrunner/bin/xulrunner
elif test -e $xulrunner/bin/firefox; then
runner="$xulrunner/bin/firefox -app"
else
echo "XUL runner not found"
exit 1
fi
cat > $wrapper <<EOF
#! $SHELL -e
$runner $appfile "\$@"
EOF
chmod +x $wrapper