summaryrefslogtreecommitdiff
path: root/devel/GConf2/files/install.tmpl
blob: c8241477e9d0a51f2180845d3125797474c6798a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $NetBSD: install.tmpl,v 1.4 2003/12/28 14:24:49 jmmv Exp $
#
# Register GConf2 schema files into 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
POST-INSTALL)
	for f in ${GCONF2_SCHEMAS}; do
		GCONF_CONFIG_SOURCE="${GCONF2_CONFIG_SOURCE}" \
			${GCONFTOOL2} --makefile-install-rule \
			${GCONF2_SCHEMAS_DIR}/$f >/dev/null
	done
	for f in ${GCONF2_ENTRIES}; do
		${GCONFTOOL2} --config-source=${GCONF2_CONFIG_SOURCE} \
			--direct --load ${GCONF2_SCHEMAS_DIR}/$f >/dev/null
	done
	;;
*)
	;;
esac