2004-06-16 02:10:12 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Date created: Mon Nov 29, 2003
|
|
|
|
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
|
|
|
# Fix the chrome registry.
|
|
|
|
|
|
|
|
umask 022
|
2004-11-10 01:58:53 +01:00
|
|
|
PATH=/bin:/usr/bin:/usr/local/bin
|
2004-06-16 02:10:12 +02:00
|
|
|
|
|
|
|
[ "x$1" = "x" ] && exit 1
|
|
|
|
[ "x$2" != "xPOST-INSTALL" ] && exit 0
|
|
|
|
|
|
|
|
MOZDIR=%%MOZDIR%%
|
|
|
|
REGXPCOM=${MOZDIR}/regxpcom
|
|
|
|
REGCHROME=${MOZDIR}/regchrome
|
2004-10-17 23:29:31 +02:00
|
|
|
FIREFOX=${MOZDIR}/firefox-bin
|
2004-06-16 02:10:12 +02:00
|
|
|
|
|
|
|
echo "===> Building Chrome's registry..."
|
|
|
|
rm -rf ${MOZDIR}/chrome/overlayinfo
|
|
|
|
rm -f ${MOZDIR}/chrome/*.rdf
|
|
|
|
mkdir -p ${MOZDIR}/chrome/overlayinfo
|
|
|
|
rm -f ${MOZDIR}/component.reg
|
2004-06-16 08:58:10 +02:00
|
|
|
rm -rf ${MOZDIR}/extensions
|
2004-06-16 02:10:12 +02:00
|
|
|
|
2004-06-19 02:51:17 +02:00
|
|
|
cd ${MOZDIR} || exit 1
|
|
|
|
./run-mozilla.sh ${REGXPCOM} || true
|
|
|
|
./run-mozilla.sh ${REGCHROME} || true
|
2004-11-18 17:37:50 +01:00
|
|
|
./run-mozilla.sh ${FIREFOX} -register > /dev/null 2>&1
|
2004-10-17 23:29:31 +02:00
|
|
|
|
2004-12-04 10:47:27 +01:00
|
|
|
if [ ! -d %%PREFIX%%/lib/browser_plugins ]; then
|
|
|
|
mkdir -p %%PREFIX%%/lib/browser_plugins
|
|
|
|
fi
|
|
|
|
|
2004-06-16 02:10:12 +02:00
|
|
|
exit 0
|