"init-script=s" => \$options{INIT_SCRIPT},
"sourcedir=s" => \$options{SOURCEDIR},
+
+ "destdir=s" => \$options{DESTDIR},
);
if (!$ret) {
+debhelper (1.2.59) unstable; urgency=low
+
+ * dh_builddeb: added --destdir option, which lets you tell it where
+ to put the generated .deb's. Default is .. of course.
+
+ -- Joey Hess <joeyh@master.debian.org> Thu, 22 Apr 1999 22:02:01 -0700
+
debhelper (1.2.58) unstable; urgency=low
* autoscripts/postinst-suid: use /#FILE# in elif test (#36297).
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,"..");
+ doit("dpkg","--build",$TMP,$dh{DESTDIR});
}
dh_builddeb \- build debian packages
.SH SYNOPSIS
.B dh_builddeb
-.I "[debhelper options]"
+.I "[debhelper options] [--destdir=directory]"
.SH "DESCRIPTION"
dh_builddeb simply calls
.BR dpkg (8)
See
.BR debhelper (1)
for a list of options common to all debhelper commands.
+.TP
+.B --destdir=directory
+Use this if you want the generated .deb files to be put in a directory other
+than the default of ".."
.SH ENVIRONMENT
See
.BR debhelper (1)
examples into usr/doc/package/examples in package build directories.
.P
Any file names specified as parameters will be installed into the first
-package dh_installdirs is told to act on. By default, this is the first
+package dh_installexamples is told to act on. By default, this is the first
binary package in debian/control, but if you use -p, -i, or -a flags, it
will be the first package specified by those flags.
.P
dh_installinit will ever use this)
--sourcedir SOURCEDIR will be set to a string (probably only
dh_movefiles will ever use this)
+--destdir DESTDIR will be set to a string (probably only
+ dh_builddeb will ever use this)
Any additional command line parameters that do not start with "-" will be
ignored, and you can access them later just as you normally would.