summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey>1999-10-26 17:15:52 +0000
committerjoey <joey>1999-10-26 17:15:52 +0000
commitce345636461e05dc52b74ad41b8049c2349c9f12 (patch)
treea81ab6b09ab4d080390ace7807237c57a7b015d1
parent52fffed568e30c7991de81de55cde095807519ba (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)
-rw-r--r--debian/changelog7
-rwxr-xr-xdh_builddeb20
-rw-r--r--dh_builddeb.140
3 files changed, 39 insertions, 28 deletions
diff --git a/debian/changelog b/debian/changelog
index 4a28531d..78ff353a 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 <joeyh@master.debian.org> 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 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}});
+}
diff --git a/dh_builddeb.1 b/dh_builddeb.1
index bfe72e72..556b5430 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 <joeyh@master.debian.org>