5 dh_gencontrol - generate and install control file
10 use Debian::Debhelper::Dh_Lib;
14 dh_gencontrol [debhelper options] [-uparams] [-- params]
18 dh_gencontrol is a debhelper program that is responsible for generating
19 control files, and installing them into the DEBIAN directory with the
22 This program is merely a wrapper around L<dpkg-gencontrol(1)>.
28 =item B<-u>I<params>, B<--dpkg-gencontrol-params>I<params>
31 Pass "params" to L<dpkg-gencontrol(1)>.
39 foreach my $package (@{$dh{DOPACKAGES}}) {
40 my $tmp=tmpdir($package);
41 my $ext=pkgext($package);
43 my $changelog=pkgfile($package,'changelog');
45 $changelog='debian/changelog';
48 if ( ! -d "$tmp/DEBIAN" ) {
49 doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN");
52 # Generate and install control file.
53 doit("dpkg-gencontrol","-l$changelog","-isp","-p$package",
54 "-Tdebian/${ext}substvars","-P$tmp",@{$dh{U_PARAMS}});
56 # This chmod is only necessary if the user sets the umask to something odd.
57 doit("chmod","644","$tmp/DEBIAN/control");
59 doit("chown","0.0","$tmp/DEBIAN/control");
66 This program is a part of debhelper.
70 Joey Hess <joeyh@debian.org>