1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-16 11:40:13 -07:00
kiss/contrib/kiss-maintainer
2020-09-04 13:32:19 -04:00

19 lines
419 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 "$@" | uniq -u | 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