]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-gconf
r1635: * Added dh_gconf command from Ross Burton. Closes: #180882
[debhelper.git] / autoscripts / postinst-gconf
diff --git a/autoscripts/postinst-gconf b/autoscripts/postinst-gconf
new file mode 100644 (file)
index 0000000..c5ee87d
--- /dev/null
@@ -0,0 +1,11 @@
+if [ "$1" = "configure" ]; then
+       SCHEMA_LOCATION=/etc/gconf/schemas
+       SCHEMA_FILES="#SCHEMAS#"
+       for SCHEMA in $SCHEMA_FILES; do
+               if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
+                       HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+                               gconftool-2 \
+                               --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
+               fi
+       done
+fi