Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2023 19:42:39 GMT
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f08b42fbd9c8 - main - Tools/scripts: use a port-specific commit message if removing a single port.
Message-ID:  <202302191942.31JJgdTE093719@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rene:

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

commit f08b42fbd9c849b7dcde7a9c23ed4a5025e1b6b9
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2023-02-19 19:37:46 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2023-02-19 19:42:20 +0000

    Tools/scripts: use a port-specific commit message if removing a single port.
    
    This helps in `git shortlog`, replacing "cleanup: Remove expired ports" by
    "category/port: Remove expired port" for a given category and port.
    
    Reported by:    gerald
---
 Tools/scripts/rmport | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index 30d8e219441d..dd1251f54a78 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -410,7 +410,16 @@ fi
 gitlog=$(mktemp -t gitlog)
 gitrmlist=$(mktemp -t gitrmlist)
 
-echo "cleanup: Remove expired ports:" > ${gitlog}
+if [ $# -eq 1 ] ; then
+	topic="$1"
+	plural=""
+else
+	log "/!\\ Removing multiple ports at once, commit topic will generic /!\\"
+	topic="cleanup"
+	plural="s"
+fi
+
+echo "${topic}: Remove expired port${plural}:" > ${gitlog}
 echo "" >> ${gitlog}
 
 for catport in $* ; do



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302191942.31JJgdTE093719>