forked from kiss-community/kiss
18 lines
321 B
Bash
Executable File
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
|