aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-25 20:42:35 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-25 20:42:35 +0000
commitdccd4404c4ab677480c0fe0aed0f1d3b82e4210b (patch)
treea451cb749e4261e537cf39381331ee5ae9731c6b /contrib
parenta19a5a2911c90ff5af2567e1043f2a5f175630c4 (diff)
downloadcpt-dccd4404c4ab677480c0fe0aed0f1d3b82e4210b.tar.gz
kiss-maintainer: Better output
FossilOrigin-Name: 715cf8d3c647667648cd7b36f3885c18d1f81f238299ff88c97082b2ca3508c3
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/kiss-maintainer15
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