1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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
This commit is contained in:
Rene Ladan 2023-02-19 20:37:46 +01:00
parent e65d3eeb6a
commit f08b42fbd9

View File

@ -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