]> git.donarmstrong.com Git - debhelper.git/blob - dh_builddeb
r380: * dh_builddeb: added a --filename option to specify the output filename.
[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
17 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
18         $TMP=tmpdir($PACKAGE);
19         doit("dpkg","--build",$TMP,"$dh{DESTDIR}/$dh{FILENAME}",@{$dh{U_PARAMS}});
20 }