diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-25 20:42:35 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-25 20:42:35 +0000 |
commit | dccd4404c4ab677480c0fe0aed0f1d3b82e4210b (patch) | |
tree | a451cb749e4261e537cf39381331ee5ae9731c6b /contrib | |
parent | a19a5a2911c90ff5af2567e1043f2a5f175630c4 (diff) | |
download | cpt-dccd4404c4ab677480c0fe0aed0f1d3b82e4210b.tar.gz |
kiss-maintainer: Better output
FossilOrigin-Name: 715cf8d3c647667648cd7b36f3885c18d1f81f238299ff88c97082b2ca3508c3
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/kiss-maintainer | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/kiss-maintainer b/contrib/kiss-maintainer index 55bcc5e..5039002 100755 --- 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 |