summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-08-05 11:00:10 -0400
committerJoey Hess <joey@kitenet.net>2011-08-05 11:00:10 -0400
commit7da05db96ef52c0f3367538c2b197341484a70c2 (patch)
tree43bcac3230662048517a66252d8a045863d88a0a /dh
parentc7129bd1fe604d7ae2617fe1b6f516d8aee199b6 (diff)
dh: The --before --after --until and --remaining options are deprecated. Use override targets instead.
Diffstat (limited to 'dh')
-rwxr-xr-xdh13
1 files changed, 13 insertions, 0 deletions
diff --git a/dh b/dh
index bf9685d..474cba8 100755
--- 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)>