# $NetBSD: deinstall.tmpl,v 1.5 2003/12/28 14:24:49 jmmv Exp $ # # Unregister GConf2 schema files from GConf2's database at install time. # GCONFTOOL2="@GCONFTOOL2@" GCONF2_ENTRIES="@GCONF2_ENTRIES@" GCONF2_SCHEMAS="@GCONF2_SCHEMAS@" GCONF2_SCHEMAS_DIR="@GCONF2_SCHEMAS_DIR@" GCONF2_CONFIG_SOURCE="@GCONF2_CONFIG_SOURCE@" case ${STAGE} in DEINSTALL) for f in ${GCONF2_ENTRIES}; do ${GCONFTOOL2} --config-source=${GCONF2_CONFIG_SOURCE} \ --direct --unload ${GCONF2_SCHEMAS_DIR}/$f >/dev/null done for f in ${GCONF2_SCHEMAS}; do GCONF_CONFIG_SOURCE="${GCONF2_CONFIG_SOURCE}" \ ${GCONFTOOL2} --makefile-uninstall-rule \ ${GCONF2_SCHEMAS_DIR}/$f >/dev/null done ;; *) ;; esac