]> git.donarmstrong.com Git - debhelper.git/commitdiff
r198: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:13:00 +0000 (05:13 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:13:00 +0000 (05:13 +0000)
Dh_Getopt.pm
debian/changelog
dh_builddeb
dh_builddeb.1
dh_installexamples.1
doc/PROGRAMMING

index 5f43496bb7b6373df74aa649f600809d6931bf60..0c28500d6dfc069b9e40ebbc7dd949f0fd2707d2 100644 (file)
@@ -114,6 +114,8 @@ sub parseopts {
                "init-script=s" => \$options{INIT_SCRIPT},
                
                "sourcedir=s" => \$options{SOURCEDIR},
+               
+               "destdir=s" => \$options{DESTDIR},
        );
 
        if (!$ret) {
index 8208825c23a435371c293d66727773f2361c23f5..a9c6a0b71e411093a5b59ce5f3dd939be561f596 100644 (file)
@@ -1,3 +1,10 @@
+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).
index 06cc1bebf80af0f3bcbfaf0226ab4ca7a69c18e7..9d760b5e640ec9ab78f44208dd3a3e4eddc4a919 100755 (executable)
@@ -6,7 +6,12 @@ BEGIN { push @INC, "debian", "/usr/lib/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,"..");
+       doit("dpkg","--build",$TMP,$dh{DESTDIR});
 }
index cf492b4c28b88707ea28d7fab8014f262dc01c26..134cd8832a4bb5dcf61f20db754d75f57d53d8e2 100644 (file)
@@ -3,7 +3,7 @@
 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)
@@ -14,6 +14,10 @@ to build a .deb package or packages.
 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)
index 61ec0ea028ab29a8fa98acee23d0289cc04f9c6c..87ccd1ffa9a4a87ee07a4dce908120025b6c11ec 100644 (file)
@@ -9,7 +9,7 @@ dh_installexamples is a debhelper program that is responsible for installing
 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
index e40f042114924b183a3fd651310773fd7f9b7017..5a47fc2569173069be08b627a01c2aab05b227c4 100644 (file)
@@ -118,6 +118,8 @@ switch              variable        description
                                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.