summaryrefslogtreecommitdiff
path: root/x11/gtk2/files/immodules.tmpl
blob: e31f9d0f1079bfc8b8993dbc58ffd633cbcd618a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $NetBSD: immodules.tmpl,v 1.2 2004/06/20 20:12:20 jmmv Exp $
#
# Rebuild the GTK2 immodules database.
#

GTK_IMMODULES_DB="@GTK_IMMODULES_DB@"
GTK_QUERY_IMMODULES="@GTK_QUERY_IMMODULES@"

case ${STAGE} in
POST-INSTALL)
	${GTK_QUERY_IMMODULES} > ${GTK_IMMODULES_DB}
	;;
DEINSTALL)
	[ "${PKGBASE}" = "gtk2+" ] && ${RM} -f ${GTK_IMMODULES_DB}
	;;
POST-DEINSTALL)
	[ "${PKGBASE}" != "gtk2+" ] && \
		${GTK_QUERY_IMMODULES} > ${GTK_IMMODULES_DB}
	;;
*)
	;;
esac