summaryrefslogtreecommitdiff
path: root/get-signers
diff options
context:
space:
mode:
Diffstat (limited to 'get-signers')
-rwxr-xr-xget-signers11
1 files changed, 11 insertions, 0 deletions
diff --git a/get-signers b/get-signers
new file mode 100755
index 0000000..98d5082
--- /dev/null
+++ b/get-signers
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "$#" -eq 0 ]; then
+ echo >&2 "Usage: $0 <keyid> [<keyid> ..]"
+ exit 1
+fi
+
+gpg --with-colons --fast-list-mode --list-sigs "$@" |
+ awk -F ':' '$1 ~ /sig|rev/ {print $5}' |
+ sort -u |
+ xargs gpg --recv-keys