diff options
author | joey <joey> | 1999-10-26 17:15:52 +0000 |
---|---|---|
committer | joey <joey> | 1999-10-26 17:15:52 +0000 |
commit | ce345636461e05dc52b74ad41b8049c2349c9f12 (patch) | |
tree | a81ab6b09ab4d080390ace7807237c57a7b015d1 /dh_builddeb | |
parent | 52fffed568e30c7991de81de55cde095807519ba (diff) |
r296: * dh_builddeb: -u can be passed to this command now, followed by
any extra parameters you want to pass to dpkg-deb (Closes: #48394)
Diffstat (limited to 'dh_builddeb')
-rwxr-xr-x | dh_builddeb | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/dh_builddeb b/dh_builddeb index a62e81ce..0822f507 100755 --- a/dh_builddeb +++ b/dh_builddeb @@ -1,7 +1,17 @@ -#!/bin/sh -e +#!/usr/bin/perl -w # -# Build the .deb package, assuming all the files are set up in debian/tmp. +# Build the .deb package, assuming all the files are set up. -PATH=debian:$PATH:/usr/lib/debhelper -source dh_lib -doit "dpkg --build debian/tmp .." +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}}); +} |