From 79608cdc169b5da7ddcfa70fd5faf1e1e399d2f7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 10 Dec 2018 14:30:14 +0100 Subject: AUTHORS: auto-generate from commit log I tend to forget to update the AUTHORS file with new contributors. Let's automate it and extract the contributors from the commit log. Manually mention people how have contributed in other ways (bug reports, documentation etc.) or how had commits in the previousl, no longer existing repository. Script based on https://github.com/cilium/cilium/blob/master/contrib/scripts/extract_authors.sh Signed-off-by: Tobias Klauser --- contrib/extract-authors.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 contrib/extract-authors.sh (limited to 'contrib') diff --git a/contrib/extract-authors.sh b/contrib/extract-authors.sh new file mode 100755 index 0000000..486e906 --- /dev/null +++ b/contrib/extract-authors.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Based on +# https://github.com/cilium/cilium/blob/master/contrib/scripts/extract_authors.sh + +function extract_authors() { + authors=$(git shortlog --summary | awk '{$1=""; print $0}' | sed -e 's/^ //') + IFS=$'\n' + for i in $authors; do + name=$(git log --use-mailmap --author="$i" --format="%aN" | head -1) + mail=$(git log --use-mailmap --author="$i" --format="%aE" | head -1) + printf ' * %s <%s>\n' "$name" "$mail" + done +} + +extract_authors | uniq | sort -- cgit v1.2.3-54-g00ecf