#!/usr/bin/perl -w =head1 NAME dh_builddeb - build debian packages =cut use strict; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] [B<--destdir=>I] [B<--name=>I] [S I>] =head1 DESCRIPTION dh_builddeb simply calls L to build a debian package or packages. =head1 OPTIONS =over 4 =item B<--destdir=>I Use this if you want the generated .deb files to be put in a directory other than the default of ".." =item B<--name=>I Use this if you want to force the generated .deb file to have a particular file name. Does not work well if more than one .deb is generated! =item B<-u>I =item B<--> I Pass I to L when it is used to build the package. =back =cut init(); # Set the default destination directory. if (! defined $dh{DESTDIR}) { $dh{DESTDIR}='..'; } if (! defined $dh{FILENAME}) { $dh{FILENAME}=''; } else { $dh{FILENAME}="/$dh{FILENAME}"; } foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp=tmpdir($package); doit("dpkg","--build",$tmp,"$dh{DESTDIR}$dh{FILENAME}",@{$dh{U_PARAMS}}); } =head1 SEE ALSO L This program is a part of debhelper. =head1 AUTHOR Joey Hess =cut