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>
32 Pass "params" to L<dpkg-gencontrol(1)>.
40 foreach my $package (@{$dh{DOPACKAGES}}) {
41 my $tmp=tmpdir($package);
42 my $ext=pkgext($package);
44 my $changelog=pkgfile($package,'changelog');
46 $changelog='debian/changelog';
49 if ( ! -d "$tmp/DEBIAN" ) {
50 doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN");
53 # Generate and install control file.
54 doit("dpkg-gencontrol","-l$changelog","-isp","-p$package",
55 "-Tdebian/${ext}substvars","-P$tmp",@{$dh{U_PARAMS}});
57 # This chmod is only necessary if the user sets the umask to something odd.
58 doit("chmod","644","$tmp/DEBIAN/control");
60 doit("chown","0.0","$tmp/DEBIAN/control");
67 This program is a part of debhelper.
71 Joey Hess <joeyh@debian.org>