1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-07-02 22:12:26 +00:00
kiss/contrib/kiss-maintainer
Dylan Araps 6786d2ca0a
kiss: Unify usage outputs for all contrib scripts.
Seeing as how these utilities are now better integrated,
more effort should go into the overall interface between
what should be the "benchmark" or example kiss scripts.
2020-04-18 12:11:56 +03:00

18 lines
322 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