5 dh_gconf - generate GConf schema registration scripts
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_gconf> [S<I<debhelper options>>] [B<-p<package>>]
18 dh_gconf is a debhelper program that is responsible for registering
21 It automatically generates the postinst and prerm fragments needed
22 to register and unregister the schemas in etc/gconf/schemas.
23 These fragements will use gconftool-2, so the package should depend on
24 gconf2. This rogram will add an apprioriate dependency to ${misc:Depends}.
30 foreach my $package (@{$dh{DOPACKAGES}}) {
31 my $tmp=tmpdir($package);
33 if (-d "$tmp/etc/gconf/schemas") {
34 # Get a list of the schemas
35 my $schemas = `find debian/$package/etc/gconf/schemas -type f -name \*.schemas -printf '%P '`;
37 autoscript($package,"postinst","postinst-gconf","s%#SCHEMAS#%$schemas%");
38 autoscript($package,"prerm","prerm-gconf","s%#SCHEMAS#%$schemas%");
39 addsubstvar($package, "misc:Depends", "gconf2 (>= 2.4.0)");
48 This program is a part of debhelper.
52 Ross Burton <ross@burtonini.com>