aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/kiss-maintainer10
-rwxr-xr-xkiss11
2 files changed, 12 insertions, 9 deletions
diff --git a/contrib/kiss-maintainer b/contrib/kiss-maintainer
index a8bc19c..55bcc5e 100755
--- a/contrib/kiss-maintainer
+++ b/contrib/kiss-maintainer
@@ -1,8 +1,12 @@
-#!/bin/sh -e
+#!/bin/sh -ef
#
# kiss-maintainer - find the maintainer of a package.
kiss s "$1" >/dev/null && {
- cd "$(kiss s "$1")"
- git log . 2>/dev/null | grep -F Author: | sort -u
+ for repo in $(kiss s "$1"); do cd "$repo"
+ maintainers=$(git log . 2>/dev/null | grep -F Author: | sort -u)
+
+ [ "$maintainers" ] &&
+ printf '=> %s\n%s\n' "$PWD" "$maintainers"
+ done
}
diff --git a/kiss b/kiss
index 9847c1a..170f165 100755
--- a/kiss
+++ b/kiss
@@ -37,8 +37,7 @@ die() {
contains() {
# Check if a "string list" contains a word.
- case " $1 " in *" $2 "*) return 0; esac
- return 1
+ case " $1 " in *" $2 "*) return 0; esac; return 1
}
prompt() {
@@ -236,15 +235,15 @@ pkg_strip() {
# Strip only files matching the below ELF types.
find "$pkg_dir/$1" -type f | while read -r file; do
case $(readelf -h "$file" 2>/dev/null) in
- *" DYN "*) strip_opt=--strip-unneeded ;;
- *" EXEC "*) strip_opt=--strip-all ;;
- *" REL "*) strip_opt=--strip-debug ;;
+ *" DYN "*) strip_opt=unneeded ;;
+ *" EXEC "*) strip_opt=all ;;
+ *" REL "*) strip_opt=debug ;;
*) continue
esac
# Suppress errors here as some binaries and libraries may
# fail to strip. This is OK.
- strip "$strip_opt" "$file" 2>/dev/null ||:
+ strip "--strip-$strip_opt" "$file" 2>/dev/null ||:
done
}