mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04: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:
parent
e65d3eeb6a
commit
f08b42fbd9
1 changed files with 10 additions and 1 deletions
|
@ -410,7 +410,16 @@ fi
|
||||||
gitlog=$(mktemp -t gitlog)
|
gitlog=$(mktemp -t gitlog)
|
||||||
gitrmlist=$(mktemp -t gitrmlist)
|
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}
|
echo "" >> ${gitlog}
|
||||||
|
|
||||||
for catport in $* ; do
|
for catport in $* ; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue