kiss-maintainer: Better output

This commit is contained in:
Dylan Araps 2020-02-25 22:42:36 +02:00
parent a2164f5617
commit a4d26034c7
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -2,11 +2,12 @@
#
# kiss-maintainer - find the maintainer of a package.
kiss s "$1" >/dev/null && {
for repo in $(kiss s "$1"); do cd "$repo"
maintainers=$(git log . 2>/dev/null | grep -F Author: | sort -u)
kiss s "$1" | while read -r repo; do cd "$repo"
m=$(git log -1 version 2>/dev/null) ||:
m=${m##*Author: }
m=${m%%>*}
[ "$maintainers" ] &&
printf '=> %s\n%s\n' "$PWD" "$maintainers"
done
}
[ "$m" ] || continue
printf '=> %s\n%s>\n' "$PWD" "$m"
done