Add patch by Stephan Beyer to improve process_keys' input parsing,
[pgp-tools.git] / keyanalyze / analyze.sh
index b70d14b873a891c41f6d88ba15f4a956de197c15..65bc57750973a5d44935d58c92f77ba11da62d6a 100755 (executable)
@@ -5,11 +5,7 @@ make
 
 # comment these next lines out if you are working with an existing
 # preprocess.keys file
-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
-cat all.keys | process_keys $2 > preprocess.keys
+pgpring -S -k "$1" | process_keys $2 > preprocess.keys
 
 # the actual processing of the main report
 keyanalyze