summaryrefslogtreecommitdiff
path: root/dh_builddeb
blob: 0822f5077a0be56657692c997fd9ba84c137af3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl -w
#
# Build the .deb package, assuming all the files are set up.

BEGIN { push @INC, "debian", "/usr/share/debhelper" }
use Dh_Lib;
init();

# Set the default destination directory.
if (! defined $dh{DESTDIR}) {
	$dh{DESTDIR}='..';
}

foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
	$TMP=tmpdir($PACKAGE);
	doit("dpkg","--build",$TMP,$dh{DESTDIR},@{$dh{U_PARAMS}});
}