Add mksamplekeys script.
authorWerner Koch <wk@gnupg.org>
Mon, 26 Mar 2012 13:48:47 +0000 (15:48 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 26 Mar 2012 13:48:47 +0000 (15:48 +0200)
* doc/mksamplekeys: New.
--
Note that we have the same script in the 1.4 branch.  That should be
removed and only this one shall be used.

doc/Makefile.am
doc/mksamplekeys [new file with mode: 0755]

index e228f23..9a46a07 100644 (file)
@@ -28,7 +28,7 @@ helpfiles = help.txt help.be.txt help.ca.txt help.cs.txt              \
             help.pt_BR.txt help.ro.txt help.ru.txt help.sk.txt         \
             help.sv.txt help.tr.txt help.zh_CN.txt help.zh_TW.txt
 
             help.pt_BR.txt help.ro.txt help.ru.txt help.sk.txt         \
             help.sv.txt help.tr.txt help.zh_CN.txt help.zh_TW.txt
 
-EXTRA_DIST = samplekeys.asc \
+EXTRA_DIST = samplekeys.asc mksamplekeys \
             gnupg-logo.eps gnupg-logo.pdf gnupg-logo.png gnupg-logo-tr.png\
              gnupg-card-architecture.eps gnupg-card-architecture.png \
              gnupg-card-architecture.pdf \
             gnupg-logo.eps gnupg-logo.pdf gnupg-logo.png gnupg-logo-tr.png\
              gnupg-card-architecture.eps gnupg-card-architecture.png \
              gnupg-card-architecture.pdf \
diff --git a/doc/mksamplekeys b/doc/mksamplekeys
new file mode 100755 (executable)
index 0000000..bb04cec
--- /dev/null
@@ -0,0 +1,11 @@
+#/bin/sh
+# Generate a samplekeys.asc
+
+keys='1E42B367 99242560 87978569
+      4F25E3B6 5B0358A2 57548DCD B2D7795E 1CE0C630'
+
+for i in $keys; do
+  gpg --list-keys $i | awk ' { print "  " $0 }'
+done
+echo
+gpg --export-options export-minimal --export -a $keys