* Import keyanalyze into signing-party. Thanks to Matthew Wilcox for the
[pgp-tools.git] / keyanalyze / allkeys.sh
diff --git a/keyanalyze/allkeys.sh b/keyanalyze/allkeys.sh
new file mode 100755 (executable)
index 0000000..7acf9b5
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash --
+# usage ./analyze.sh path/to/pubring.pgp
+set -e
+make
+
+# comment these next lines out if you are working with an existing
+# preprocess.keys file
+pgpring/pgpring -S -k $1                                                       \
+       | grep "\(pub\|sig\|rev\|uid\)"                                 \
+       | sed -e "s/^\([a-z]*\).*:\([0-9A-F]\{16\}\):.*/\1 \2/g"        \
+               -e "s/^uid:.*/uid/"     > all.keys