kiss/contrib/kiss-maintainer
2023-03-22 01:16:58 +00:00

17 lines
407 B
Bash
Executable File

#!/bin/sh -ef
# Find the maintainer of a package
# Use the current directory as the package name if no package is given.
[ "$1" ] || {
export KISS_PATH="${PWD%/*}:$KISS_PATH"
set -- "${PWD##*/}"
}
kiss search "$@" | sort -u | while read -r repo; do cd "$repo"
m=$(git log -1 --format='%an <%ae>' -- version 2>/dev/null) ||:
[ "$m" ] || continue
printf '=> %s\n%s\n' "$PWD" "$m"
done