]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh: The --before --after --until and --remaining options are deprecated. Use override...
authorJoey Hess <joey@kitenet.net>
Fri, 5 Aug 2011 15:00:10 +0000 (11:00 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 5 Aug 2011 15:00:10 +0000 (11:00 -0400)
debian/changelog
dh
doc/TODO

index c4840bc1bc2ce31b1003db586ab82ec6cbe114af..b0fbe40bc1d7f64b33863c306e69ee787d19f06b 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (8.9.4) UNRELEASED; urgency=low
+
+  * dh: The --before --after --until and --remaining options are deprecated.
+    Use override targets instead.
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 05 Aug 2011 10:58:36 -0400
+
 debhelper (8.9.3) unstable; urgency=low
 
   * dh: Remove obsolete optimisation hack that caused sequence breakage
diff --git a/dh b/dh
index bf9685d7f9a53a6f21e16f3e6947d1501b9b1bf4..474cba88f358154226bf8eb7767ea65cac2c9a09 100755 (executable)
--- a/dh
+++ b/dh
@@ -56,18 +56,22 @@ List all available addons.
 =item B<--until> I<cmd>
 
 Run commands in the sequence until and including I<cmd>, then stop.
+(Deprecated)
 
 =item B<--before> I<cmd>
 
 Run commands in the sequence before I<cmd>, then stop.
+(Deprecated)
 
 =item B<--after> I<cmd>
 
 Run commands in the sequence that come after I<cmd>.
+(Deprecated)
 
 =item B<--remaining>
 
 Run all commands in the sequence that have yet to be run.
+(Deprecated)
 
 =item B<--no-act>
 
@@ -322,6 +326,7 @@ init(options => {
 );
 inhibit_log();
 set_buildflags();
+warn_deprecated();
 
 # If make is using a jobserver, but it is not available
 # to this process, clean out MAKEFLAGS. This avoids
@@ -853,6 +858,14 @@ sub rules_explicit_target {
 
 }
 
+sub warn_deprecated {
+       foreach my $deprecated ('until', 'after', 'before', 'remaining') {
+               if (defined $dh{uc $deprecated}) {
+                       warning("The --$deprecated option is deprecated. Use override targets instead.");
+               }
+       }
+}
+
 =head1 SEE ALSO
 
 L<debhelper(7)>
index fa2de616c99bca4b7225093e35d336cf10df5d71..573917fa4c40cfb971c0b7a09afaed357d28326a 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -21,7 +21,7 @@ Deprecated:
 * delsubstvar() and the last parameter to addsubstvar that makes it remove
   a string are not used in debhelper itself, but have been left in the
   library in case other things use them. Deprecate and remove.
-* dh --before , --after , --until , --remaining (not formally deprecated yet)
+* dh --before , --after , --until , --remaining
 * debian/compress files
 * deprecate dh_gconf for dh_installgsettings (stuff should be migrating
   away from gconf, and then I can just remove it -- have not added warning