X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_builddeb;h=3d3725ac5a9045d0d46b56f866bff6e0d7435e50;hb=0f67d07da233d81970617f552f5c83176b048fd2;hp=0822f5077a0be56657692c997fd9ba84c137af3c;hpb=ce345636461e05dc52b74ad41b8049c2349c9f12;p=debhelper.git diff --git a/dh_builddeb b/dh_builddeb index 0822f50..3d3725a 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,14 @@ if (! defined $dh{DESTDIR}) { $dh{DESTDIR}='..'; } +if (! defined $dh{FILENAME}) { + $dh{FILENAME}=''; +} +else { + $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}}); }