From ce345636461e05dc52b74ad41b8049c2349c9f12 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 26 Oct 1999 17:15:52 +0000 Subject: 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) --- dh_builddeb | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'dh_builddeb') 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}}); +} -- cgit v1.2.3