Keys: added backticks and improved the developer guide on how to add keys

Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/17e2efcd
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/17e2efcd
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/17e2efcd

Branch: refs/heads/feature/cd-pipeline
Commit: 17e2efcdd485084467b9da3ce7ae65c5d683543f
Parents: aec32af
Author: Dominik Psenner <[email protected]>
Authored: Thu Jul 20 18:10:25 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Thu Jul 20 18:10:25 2017 +0200

----------------------------------------------------------------------
 KEYS.md | 36 +++++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/17e2efcd/KEYS.md
----------------------------------------------------------------------
diff --git a/KEYS.md b/KEYS.md
index 15b4bf4..d7cb6f5 100644
--- a/KEYS.md
+++ b/KEYS.md
@@ -4,13 +4,24 @@ This file contains the PGP keys of various Apache developers. 
These keys are pri
 
 # Add keys
 
-This information is for the developers. To add your key information use do the 
following, replacing UID with your email address:
+This information is for the developers. To add your key information use the 
following shell script by setting the variables NAME and EMAIL to your name and 
email respectively:
 
 ```
-echo "" >> KEYS.md
-echo "## your name <UID>" >> KEYS.md
-gpg --list-keys UID >> KEYS.md
-gpg --export -a UID >> KEYS.md
+#!/bin/bash
+NAME="your name"
+EMAIL="your@email"
+
+cat <<EOT >> KEYS.md
+## $NAME <$EMAIL>
+
+``````
+gpg --list-keys $EMAIL
+``````
+
+``````
+gpg --export -a $EMAIL
+``````
+EOT
 ```
 
 The original source of this file is 
https://git-wip-us.apache.org/repos/asf?p=logging-log4net.git;a=blob;f=KEYS.md;hb=refs/heads/master
@@ -27,10 +38,12 @@ This information is for the user. To import this key file 
into your keyring use:
 
 ## Nicko Cadell <[email protected]>
 
+```
 pub   1024D/914A4D28 2005-03-07
 uid                  Nicko Cadell <[email protected]>
 sub   2048g/6923CBDA 2005-03-07
-
+```
+```
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 Version: GnuPG v1.4.0 (MingW32)
 
@@ -61,9 +74,11 @@ 
Sk0ouF4An1sFuJ+/kJlvKRs+nNjFqrQdsuDCAJ9WDNgUqnAkdLVTRJq8UeK0AjOq
 oQ==
 =4aNz
 -----END PGP PUBLIC KEY BLOCK-----
+```
 
 ## Stefan Bodewig <[email protected]>
 
+```
 pub   1024D/5F6B8B72 2001-05-28
 uid                  Stefan Bodewig <[email protected]>
 sig 3        5F6B8B72 2001-05-28  Stefan Bodewig <[email protected]>
@@ -206,7 +221,8 @@ sig        3 01530235 2007-05-02  Luc Maisonobe 
(SpaceRoots) <[email protected]
 sig          40581837 2007-05-08  Nick Kew <[email protected]>
 sub   1024g/24774157 2001-05-28
 sig          5F6B8B72 2001-05-28  Stefan Bodewig <[email protected]>
-
+```
+```
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
@@ -609,14 +625,18 @@ 
ABIJEKIRWuFfa4tyB2VHUEcAAQENMgCgnc22kj8TfjktU6u4SUUqud25ZZcAn0B2
 b0zPjKjGuiwdKSnkFbNcFS3g
 =UxMc
 -----END PGP PUBLIC KEY BLOCK-----
+```
 
 ## Dominik Psenner <[email protected]>
 
+```
 pub   2048R/5497A907 2016-08-21
 uid                  Dominik Psenner <[email protected]>
 uid                  Dominik Psenner <[email protected]>
 sub   2048R/09136DF3 2016-08-21
+```
 
+```
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 Version: GnuPG v1
 
@@ -655,3 +675,5 @@ 
gaPrYff+KSRAPmNl/oRE8qySEimDO3u+UqYKJHKGOqKcQCxwsbhPOYniakR09UMc
 agG4idE=
 =w70J
 -----END PGP PUBLIC KEY BLOCK-----
+```
+

Reply via email to