[BACK]Return to DEINSTALL CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2

File: [cvs.NetBSD.org] / pkgsrc / devel / glib2 / DEINSTALL (download)

Revision 1.1, Sun Feb 20 17:40:54 2011 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-, HEAD

Forcibly delete any stale cache files during deinstall.  For example, the
gio-querymodules utility does not delete the file when no modules are left,
so we were left with a giomodule.cache file after removing glib2 that was
not managed by any package.

Also, and as a side effect, ensure that the files are created during
install time so that in-place updates work correctly.

Bump PKGREVISION to 2.

#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.1 2011/02/20 17:40:54 jmmv Exp $
#
# Forcibly remove any auto-generated caches.  The cache-regeneration tools
# should be doing this automatically when there are no more files in the
# directories they scan, but they don't.  And, anyway, we need to do this
# if we want in-place updates of glib2 to work correctly.
#

GIO_MODULES_DIR="@GIO_MODULES_DIR@"
GLIB_SCHEMAS_DIR="@GLIB_SCHEMAS_DIR@"

case ${STAGE} in
DEINSTALL)
	${RM} -f "${GIO_MODULES_DIR}/giomodule.cache"
	${RM} -f "${GLIB_SCHEMAS_DIR}/gschemas.compiled"
	;;
esac