]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_builddeb
r1414: fix tag name
[debhelper.git] / dh_builddeb
index 06cc1bebf80af0f3bcbfaf0226ab4ca7a69c18e7..04c3570a8f31fc3c16aa9ead95c1b66936ec40e8 100755 (executable)
@@ -2,11 +2,16 @@
 #
 # Build the .deb package, assuming all the files are set up.
 
-BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
+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,"..");
+       doit("dpkg","--build",$TMP,$dh{DESTDIR});
 }