]> git.donarmstrong.com Git - debhelper.git/commitdiff
r224: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:16:26 +0000 (05:16 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:16:26 +0000 (05:16 +0000)
Dh_Lib.pm
debhelper.1
debian/changelog
doc/PROGRAMMING
doc/README
examples/rules
examples/rules.multi

index 2517431249a6617ea0896f066b2f0a6052842379..b7f281babd3ae6055ca863656873e77130e8e906 100644 (file)
--- a/Dh_Lib.pm
+++ b/Dh_Lib.pm
@@ -187,14 +187,27 @@ sub dirname { my $fn=shift;
        return $fn;
 }
 
+# Pass in a number, will return true iff the current compatability level
+# is equal to that number.
+sub compat {
+       my $num=shift;
+       
+       my $c=1;
+       if (defined $ENV{DH_COMPAT}) {
+               $c=$ENV{DH_COMPAT};
+       }
+       
+       return ($c == $num);
+}
+
 # Pass it a name of a binary package, it returns the name of the tmp dir to
 # use, for that package.
-# This is for back-compatability with the debian/tmp tradition.
 sub tmpdir { my $package=shift;
        if ($dh{TMPDIR}) {
                return $dh{TMPDIR};
        }
-       elsif ($package eq $dh{MAINPACKAGE}) {
+       elsif (compat(1) && $package eq $dh{MAINPACKAGE}) {
+               # This is for back-compatability with the debian/tmp tradition.
                return "debian/tmp";
        }
        else {
index 1562b2bf933677c14a8f899b6a4eb8bfdac72c4c..6834594a62366d5ba2effce2ff8d8140f7f0b3cd 100644 (file)
@@ -120,6 +120,14 @@ Here is the complete list of available debhelper commands.
 .I DH_VERBOSE
 Enables verbose mode.
 .TP
+.I DH_COMPAT
+Specifies what compatability level debhelper should run at. The default is 1,
+which makes debhelper behave in a manner compatable with the 1.x series of
+debhelper. If set to 2, debhelper's behavior will change to use the new
+features of the 2.x series. Use this with caution, as the 2.x series makes
+major changes that will break most packages. For documentation on these
+changes, read /usr/doc/debhelper/v2
+.TP
 .I DH_NO_ACT
 Enables no-act mode.
 .TP
index b4296a0419a74a18df818ca1fc17cbc63179636c..212c1ee5b44b60fb63b49fc703225856631b245c 100644 (file)
@@ -1,3 +1,13 @@
+debhelper (1.9.00) unstable; urgency=low
+
+  * This is a release of debhelper in preparation for debhelper v2.
+  * doc/v2: added, documented status of v2 changes.
+  * README: mention doc/v2
+  * debhelper.1: docuimented DH_COMPAT
+  * examples/*: added DH_COMAPT=1 to top of rules files
+
+ -- Joey Hess <joeyh@master.debian.org>  Thu,  1 Jul 1999 13:16:41 -0700
+
 debhelper (1.2.83) unstable; urgency=medium
 
   * dh_perl: fixed substvars typo. Urgency medium since a lot of people will
index 4f0714967e068d924ab300000c79f097b0771773..02b11a21bc10cf60cfe2f06ebc3b3063ad2a63c2 100644 (file)
@@ -169,6 +169,10 @@ tmpdir()
        name of the tmp directory that will be used as this package's
        package build directory. Typically, this will be "debian/tmp" or
        "debian/package".
+compat()
+       Pass this command a number, and if the current compatability level
+       equals that number, it will return true. Looks at DH_COMPAT to get
+       the compatability level.
 pkgfile()
        Pass this command the name of a binary package, and the base name of a
        file, and it will return the actual filename to use. This is used
index 7ba69863ffbbcdeff910b0d1156e61d8dbd58ba2..ff43553ed3cec0f8ff3abcb1f5b7fdbde2f92db9 100644 (file)
@@ -12,6 +12,13 @@ various debhelper scripts in (though other variations are possible).
 For a more gentle introduction, the maint-guide debian package contains a
 tutorial about making your first package using Debhelper.
 
+Debhelper v2:
+------------
+
+Debhelper v2 is a major new version of Debhelper, still under development.
+Debhelper will continue to work in v1 compatability mode for now, if you're
+interested in trying the new versiln, read the file named "v2".
+
 
 Starting a new package:
 ----------------------
index 806092ca270faf984c0f61a883927f56bc863e13..5e805edbe7b88853034ddb6492de0a953e08155e 100755 (executable)
@@ -4,6 +4,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# This is the debhelper compatability version to use.
+export DH_COMPAT=1
+
 build: build-stamp
 build-stamp:
        dh_testdir
index 433c16fe045390c3452d9410966715c93017ce10..7a609e6c469e6ff4d5b5bcc54d35a5aa1c79803e 100755 (executable)
@@ -7,6 +7,9 @@
 # Uncomment this to turn on verbose mode. 
 #export DH_VERBOSE=1
 
+# This is the debhelper compatability version to use.
+export DH_COMPAT=1
+
 build: build-stamp
 build-stamp:
        dh_testdir