summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-02-27 12:05:40 -0500
committerPaul Moore <paul@paul-moore.com>2017-02-27 14:41:05 -0500
commit7a54ef4babd0c59d8e0eeb40bc820ca01ba0c181 (patch)
treec51fc382aa772bea3189de63daa9883d5f05621c
parent7d3957986fbe5914ececc5a6acfeafdde66d3482 (diff)
downloadlibseccomp-7a54ef4babd0c59d8e0eeb40bc820ca01ba0c181.tar.gz
docs: new tool to update the credits file
This commit also adds a .mailmap file and updates the RELEASE_PROCESS document to use the new script. Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--.mailmap10
-rw-r--r--RELEASE_PROCESS.md4
-rwxr-xr-xdoc/credits_updater35
3 files changed, 49 insertions, 0 deletions
diff --git a/.mailmap b/.mailmap
new file mode 100644
index 0000000..67632a7
--- /dev/null
+++ b/.mailmap
@@ -0,0 +1,10 @@
+# libseccomp git mailmap file (see git-shortlog documentation)
+
+Paul Moore <paul@paul-moore.com> <pmoore@redhat.com>
+
+Kees Cook <keescook@chromium.org> <kees@debian.org>
+Kees Cook <keescook@chromium.org> <kees@ubuntu.com>
+
+Serge Hallyn <serge.hallyn@ubuntu.com> <serge.hallyn@canonical.com>
+
+Thiago Marcos P. Santos <thiago.santos@intel.com> <tmpsantos@gmail.com>
diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md
index 4169144..e80fc84 100644
--- a/RELEASE_PROCESS.md
+++ b/RELEASE_PROCESS.md
@@ -40,6 +40,10 @@ release.
#### 7. Update the CREDITS file with any new contributors
+ # ./doc/credits_updater > CREDITS
+
+ ... the results can be sanity checked with the following git command:
+
# git log --pretty=format:"%aN <%aE>" | sort -u
#### 8. Update the CHANGELOG file with significant changes since the last release
diff --git a/doc/credits_updater b/doc/credits_updater
new file mode 100755
index 0000000..e763dd6
--- /dev/null
+++ b/doc/credits_updater
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+#
+# libseccomp credit updater script
+#
+# Copyright (c) 2017 Red Hat <pmoore@redhat.com>
+# Author: Paul Moore <paul@paul-moore.com>
+#
+
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of version 2.1 of the GNU Lesser General Public License as
+# published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+# for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, see <http://www.gnu.org/licenses>.
+#
+
+# header
+echo "libseccomp: Contributors"
+echo "========================================================================"
+echo "https://github.com/seccomp/libseccomp"
+echo ""
+
+# body
+git log --pretty=format:"%aN <%aE>" | \
+ grep -v '<libseccomp@googlegroups.com>' | \
+ sort -u
+
+exit 0