]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_gencontrol
r576: * Rename debhelper.1 to debhelper.7.
[debhelper.git] / dh_gencontrol
index fcb91845a6957e8caf64c6ad6c651db7346e0349..4e9ff3e892203357b29e6e02448c8fea738480be 100755 (executable)
@@ -53,8 +53,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        }
 
        # Generate and install control file.
-       doit("dpkg-gencontrol","-l$changelog","-isp","-p$package",
-                    "-Tdebian/${ext}substvars", "-P$tmp",@{$dh{U_PARAMS}});
+       my @command="dpkg-gencontrol";
+       if (GetPackages() > 1) {
+               push @command, "-p$package";
+       }
+       doit(@command, "-l$changelog", "-isp", "-Tdebian/${ext}substvars", 
+               "-P$tmp",@{$dh{U_PARAMS}});
 
        # This chmod is only necessary if the user sets the umask to
        # something odd.
@@ -65,7 +69,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.