From c4abd61b1f5822b4153d98703457cd599e67ac7e Mon Sep 17 00:00:00 2001 From: Sam Hatchett Date: Wed, 16 Sep 2015 16:06:31 -0400 Subject: [PATCH] cleans up the AUTHORS file generation script and mailmap fixes #28 --- .mailmap | 7 +++++++ AUTHORS | 20 +++++++------------- tools/update-authors.sh | 15 ++++++++++++--- 3 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 .mailmap diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000..e9efe6a --- /dev/null +++ b/.mailmap @@ -0,0 +1,7 @@ +Sam Hatchett +James Uber +Demetrios Eliades +Hyoungmin Woo Mickey +Hyoungmin Woo Hyoungmin Woo +Yunier Soad +Jinduan Chen \ No newline at end of file diff --git a/AUTHORS b/AUTHORS index 6738417..df0b6bf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,24 +1,18 @@ # Authors ordered by first contribution. +# Generated by tools/update-authors.sh -Jessica Orquina +Lew Rossman Michael Tryby -sam hatchett +Sam Hatchett Feng Shang James Uber -Sam Hatchett Tom Taxon -Hyoungmin Woo -Mickey -JinduanChen -mickey -yuniersoad -jamesuber +Hyoungmin Woo +Jinduan Chen +Yunier Soad Mike Kane -eldemet +Demetrios Eliades Will Furnass Steffen Macke Mariosmsk Elad Salomons -Demetrios Eliades - -# Generated by tools/update-authors.sh diff --git a/tools/update-authors.sh b/tools/update-authors.sh index 17ea7a6..b259e56 100755 --- a/tools/update-authors.sh +++ b/tools/update-authors.sh @@ -1,22 +1,31 @@ #!/bin/sh +## +## This script will auto-generate the AUTHORS attribution file. +## If your name does not display correctly, then please +## update the .mailmap file in the root repo directory +## + git log --reverse --format='%aN <%aE>' | perl -we ' BEGIN { %seen = (), @authors = (); } +## must manually add Lew first, since he generated the code prior to CVS +push @authors, "Lew Rossman \n"; + while (<>) { next if $seen{$_}; - next if /\@chromium.org/; - next if //; + next if /orquina.jessica\@epa.gov/; ## this individual never authored code; just init-ed the repo $seen{$_} = push @authors, $_; } END { print "# Authors ordered by first contribution.\n"; - print "\n", @authors, "\n"; print "# Generated by tools/update-authors.sh\n"; + print "\n", @authors; + } ' > ../AUTHORS \ No newline at end of file