]> git.donarmstrong.com Git - debhelper.git/blob - dh_builddeb
r381: * dh_builddeb: Ok, it is cosmetic, but it annoyed me.
[debhelper.git] / dh_builddeb
1 #!/usr/bin/perl -w
2 #
3 # Build the .deb package, assuming all the files are set up.
4
5 use Debian::Debhelper::Dh_Lib;
6 init();
7
8 # Set the default destination directory.
9 if (! defined $dh{DESTDIR}) {
10         $dh{DESTDIR}='..';
11 }
12
13 if (! defined $dh{FILENAME}) {
14         $dh{FILENAME}='';
15 }
16 else {
17         $dh{FILENAME}="/$dh{FILENAME}";
18 }
19
20 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
21         $TMP=tmpdir($PACKAGE);
22         doit("dpkg","--build",$TMP,"$dh{DESTDIR}$dh{FILENAME}",@{$dh{U_PARAMS}});
23 }