head	1.6;
access;
symbols
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.5
	RELEASE_6_2_0:1.3
	old_RELEASE_6_0_0:1.1
	old_RELEASE_5_4_0:1.1;
locks; strict;
comment	@# @;


1.6
date	2009.07.14.22.10.36;	author miwi;	state dead;
branches;
next	1.5;

1.5
date	2007.03.19.11.42.52;	author ahze;	state Exp;
branches;
next	1.4;

1.4
date	2006.11.01.13.25.56;	author ahze;	state dead;
branches;
next	1.3;

1.3
date	2006.03.29.20.45.18;	author ahze;	state Exp;
branches;
next	1.2;

1.2
date	2005.11.29.22.55.39;	author ahze;	state dead;
branches;
next	1.1;

1.1
date	2005.02.26.09.32.01;	author marcus;	state Exp;
branches;
next	;


desc
@@


1.6
log
@- Remove www/firefox-devel, please use www/firefox3 or www/firefox35
@
text
@#!/bin/sh
#

# S50cleanhome
# a script to clean up users' Mozilla home directories to make upgrading
# less painful.

# We run in our own subshell

# First, verify protocol
[ "$1" != "start" ] && exit 1
[ -z "${MOZ_PIS_API}" -o ${MOZ_PIS_API} -ne 2 ] && exit 1
[ -z "${MOZ_PIS_MOZBINDIR}" -o ! -d "${MOZ_PIS_MOZBINDIR}" ] && exit 1
[ -z "${HOME}" -o ! -d "${HOME}" ] && exit 1
[ -z "${MOZ_PIS_USER_DIR}" -o ! -d "${HOME}/${MOZ_PIS_USER_DIR}" ] && exit 1

# Try to cleanup ${HOME}/${MOZ_PIS_USER_DIR}

if [ -f "${HOME}/${MOZ_PIS_USER_DIR}/profiles.ini" ]; then
    sed -e '/Path=/! d' -e "s,Path=,${HOME}/${MOZ_PIS_USER_DIR}/," \
    	"${HOME}/${MOZ_PIS_USER_DIR}/profiles.ini" \
	| while read dir
    do
	[ ! -d "${dir}" ] && continue
	# Debian does this for new builds
	# rm -f "${dir}/XUL.mfasl"
	# force a rebuild of compreg.dat and xpti.dat for new installations
	[ "${dir}/compreg.dat" -ot "${MOZ_PIS_MOZBINDIR}/components.ini" ] &&
		rm -f "${dir}/compatibility.ini" "${dir}/XUL.mfasl"
    done
fi
@


1.5
log
@Readd firefox-devel at version 3.0.a2
@
text
@@


1.4
log
@- Remove firefox-devel now that Firefox 2.0 is stable
@
text
@@


1.3
log
@- Readd firefox-devel at version 2.0a1
- Add support for USE_GECKO=firefox-devel
- Fix pkg-deinstall to not remove MOZDIR/extensions
@
text
@@


1.2
log
@- Remove firefox-devel since firefox 1.5 is stable now
@
text
@@


1.1
log
@Add a Mozilla Mozilla Plugable Init Script (PIS) to handle automatically
sanitizing each users' home directory when starting Firefox.  This should
make upgrades much more painless.

PR:		75816
Submitted by:	Jose M Rodriguez (freebsd) <josemi@@freebsd.jazztel.es>
@
text
@@

