]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_builddeb
r380: * dh_builddeb: added a --filename option to specify the output filename.
[debhelper.git] / dh_builddeb
index 1082dd29e9200f33f7ee8a3d226e0820cdc6fccf..15f4e397e0610889acb5d5d48a6e7b8260c63c69 100755 (executable)
@@ -10,7 +10,11 @@ if (! defined $dh{DESTDIR}) {
        $dh{DESTDIR}='..';
 }
 
+if (! defined $dh{FILENAME}) {
+       $dh{FILENAME}='';
+}
+
 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        $TMP=tmpdir($PACKAGE);
-       doit("dpkg","--build",$TMP,$dh{DESTDIR},@{$dh{U_PARAMS}});
+       doit("dpkg","--build",$TMP,"$dh{DESTDIR}/$dh{FILENAME}",@{$dh{U_PARAMS}});
 }