X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_builddeb;h=15f4e397e0610889acb5d5d48a6e7b8260c63c69;hb=e832acd1f52e8aa5e23aee08ad047704780b182a;hp=0822f5077a0be56657692c997fd9ba84c137af3c;hpb=ce345636461e05dc52b74ad41b8049c2349c9f12;p=debhelper.git diff --git a/dh_builddeb b/dh_builddeb index 0822f50..15f4e39 100755 --- a/dh_builddeb +++ b/dh_builddeb @@ -2,8 +2,7 @@ # # Build the .deb package, assuming all the files are set up. -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; +use Debian::Debhelper::Dh_Lib; init(); # Set the default destination directory. @@ -11,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}}); }