kiss/contrib/kiss-maintainer
2020-05-01 09:07:20 +03:00

18 lines
321 B
Bash
Executable File

#!/bin/sh -ef
# Find the maintainer of a package
[ "$1" ] || {
printf 'usage: kiss-maintainer [pkg]\n'
exit 1
}
kiss s "$1" | while read -r repo; do cd "$repo"
m=$(git log -1 version 2>/dev/null) ||:
m=${m##*Author: }
m=${m%%>*}
[ "$m" ] || continue
printf '=> %s\n%s>\n' "$PWD" "$m"
done