]> git.proxmox.com Git - mirror_libseccomp.git/commitdiff
docs: new tool to update the credits file
authorPaul Moore <paul@paul-moore.com>
Mon, 27 Feb 2017 17:05:40 +0000 (12:05 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 27 Feb 2017 19:41:05 +0000 (14:41 -0500)
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>
.mailmap [new file with mode: 0644]
RELEASE_PROCESS.md
doc/credits_updater [new file with mode: 0755]

diff --git a/.mailmap b/.mailmap
new file mode 100644 (file)
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>
index 41691446e9548db4d2fa10f3c4b3b9b153899b80..e80fc84189a3272b00d01e149042df1cefbb7a1a 100644 (file)
@@ -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 (executable)
index 0000000..e763dd6
--- /dev/null
@@ -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