cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit a4d26034c762cfa5e21cc39eacbe256e64b33d35
parent a2164f56170182ab2a93ab3bf69cc311af2aacac
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Tue, 25 Feb 2020 22:42:36 +0200

kiss-maintainer: Better output

Diffstat:
Mcontrib/kiss-maintainer | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/contrib/kiss-maintainer b/contrib/kiss-maintainer @@ -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