From ce345636461e05dc52b74ad41b8049c2349c9f12 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 26 Oct 1999 17:15:52 +0000 Subject: [PATCH] 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) --- debian/changelog | 7 +++++++ dh_builddeb | 20 +++++++++++++++----- dh_builddeb.1 | 40 +++++++++++++++++----------------------- 3 files changed, 39 insertions(+), 28 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4a28531..78ff353 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (2.0.65) unstable; urgency=low + + * dh_builddeb: -u can be passed to this command now, followed by + any extra parameters you want to pass to dpkg-deb (Closes: #48394) + + -- Joey Hess Tue, 26 Oct 1999 10:14:57 -0700 + debhelper (2.0.64) unstable; urgency=low * Corrected a path name in dh_installxfonts. Closes: #48315 diff --git a/dh_builddeb b/dh_builddeb index a62e81c..0822f50 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}}); +} diff --git a/dh_builddeb.1 b/dh_builddeb.1 index bfe72e7..556b543 100644 --- a/dh_builddeb.1 +++ b/dh_builddeb.1 @@ -1,39 +1,33 @@ -.TH DH_BUILDDEB 1 +.TH DH_BUILDDEB 1 "" "Debhelper Commands" "Debhelper Commands" .SH NAME dh_builddeb \- build debian packages .SH SYNOPSIS .B dh_builddeb -.I "[-v] [-a] [-i] [-ppackage]" +.I "[debhelper options] [--destdir=directory] [-uparams]" .SH "DESCRIPTION" dh_builddeb simply calls .BR dpkg (8) to build a .deb package or packages. .SH OPTIONS .TP -.B \-v -Verbose mode; show all commands that modify the package build directory, etc. +.B debhelper options +See +.BR debhelper (1) +for a list of options common to all debhelper commands. .TP -.B \-a -Build all architecture dependent packages. +.B --destdir=directory +Use this if you want the generated .deb files to be put in a directory other +than the default of ".." .TP -.B \-i -Build all architecture independent packages. -.TP -.B \-ppackage -Build the package named "package". -.SH NOTES -The -.B \-a -.B \-i -and -.B \-p -arguments are cumulative. If none are specified, then all packages listed in -the control file will be built. +.B \-uparams +Pass "params" to +.BR dpkg-deb (1) +when it is used to build the package. .SH ENVIRONMENT -.TP -.I DH_VERBOSE -Enables verbose mode +See +.BR debhelper (1) +for a list of environment variables that affect all debhelper commands. .SH "SEE ALSO" -.BR /usr/doc/debhelper/README +.BR debhelper (1) .SH AUTHOR Joey Hess -- 2.39.2