git: 14e024121013 - main - Tools/scripts/bump_revision.pl: default on -l instead of -g

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 11 May 2023 12:56:05 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=14e02412101377577b6f03d13c81cef464ce0fba

commit 14e02412101377577b6f03d13c81cef464ce0fba
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2023-05-11 12:43:15 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2023-05-11 12:55:24 +0000

    Tools/scripts/bump_revision.pl: default on -l instead of -g
    
    -g option means also bump portevision of indirect dependencies,
    this is not required by default since at least FreeBSD 11 when we
    stopped recursively copying DT_NEEDED
---
 Tools/scripts/bump_revision.pl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Tools/scripts/bump_revision.pl b/Tools/scripts/bump_revision.pl
index b2196bb3b1ee..da306eca6097 100755
--- a/Tools/scripts/bump_revision.pl
+++ b/Tools/scripts/bump_revision.pl
@@ -37,8 +37,8 @@ sub usage {
 Usage: $0 [options] [<category>/]<portname>
 
 Options:
-    -l              - shaLlow, only bump ports with direct dependencies.
-    -g              - Grandchildren, also bump for indirect dependencies (default).
+    -l              - shaLlow, only bump ports with direct dependencies. (default).
+    -g              - Grandchildren, also bump for indirect dependencies.
     -n              - Check only (dry-run), do not change Makefiles.
     -f              - No tmpdir, just use the directory where INDEX resides.
     -i <filename>   - Use this for INDEX name. Defaults to \${PORTSDIR}/INDEX-n,
@@ -125,8 +125,8 @@ my ($portsdir, $INDEX);
 	die "Options -g and -l given, which are mutually exclusive. Pick either.";
     }
     if (not $opt_l and not $opt_g) {
-	warn "Neither -g nor -l given. Defaulting to -g";
-	$opt_g = 1;
+	warn "Neither -g nor -l given. Defaulting to -l";
+	$opt_l = 1;
     }
     $portsdir = $opt_p ? $opt_p : '/usr/ports';