forked from kiss-community/kiss
kiss-maintainer: Better output
This commit is contained in:
parent
a2164f5617
commit
a4d26034c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user