cleans up the AUTHORS file generation script and mailmap

fixes #28
This commit is contained in:
Sam Hatchett
2015-09-16 16:06:31 -04:00
parent c23c846cd8
commit c4abd61b1f
3 changed files with 26 additions and 16 deletions

7
.mailmap Normal file
View File

@@ -0,0 +1,7 @@
Sam Hatchett <samhatchett@gmail.com>
James Uber <jim@citilogics.com>
Demetrios Eliades <eldemet@gmail.com>
Hyoungmin Woo <hyoungmin.woo@gmail.com> Mickey <hyoungmin.woo@gmail.com>
Hyoungmin Woo <hyoungmin.woo@gmail.com> Hyoungmin Woo <woohn@mail.uc.edu>
Yunier Soad <yunier.soad@gmail.com>
Jinduan Chen <jinduan.uc@gmail.com>

18
AUTHORS
View File

@@ -1,24 +1,18 @@
# Authors ordered by first contribution. # Authors ordered by first contribution.
# Generated by tools/update-authors.sh
Jessica Orquina <orquina.jessica@epa.gov> Lew Rossman <LRossman@cinci.rr.com>
Michael Tryby <tryby.michael@epa.gov> Michael Tryby <tryby.michael@epa.gov>
sam hatchett <samhatchett@gmail.com> Sam Hatchett <samhatchett@gmail.com>
Feng Shang <fshang> Feng Shang <fshang>
James Uber <jim@citilogics.com> James Uber <jim@citilogics.com>
Sam Hatchett <samhatchett@gmail.com>
Tom Taxon <tntaxon@anl.gov> Tom Taxon <tntaxon@anl.gov>
Hyoungmin Woo <woohn@mail.uc.edu> Hyoungmin Woo <hyoungmin.woo@gmail.com>
Mickey <hyoungmin.woo@gmail.com>
Jinduan Chen <jinduan.uc@gmail.com> Jinduan Chen <jinduan.uc@gmail.com>
mickey <hyoungmin.woo@gmail.com> Yunier Soad <yunier.soad@gmail.com>
yuniersoad <yunier.soad@gmail.com>
jamesuber <jim@citilogics.com>
Mike Kane <muke195@gmail.com> Mike Kane <muke195@gmail.com>
eldemet <eldemet@gmail.com> Demetrios Eliades <eldemet@gmail.com>
Will Furnass <will@thearete.co.uk> Will Furnass <will@thearete.co.uk>
Steffen Macke <sdteffen@sdteffen.de> Steffen Macke <sdteffen@sdteffen.de>
Mariosmsk <mariosmsk@gmail.com> Mariosmsk <mariosmsk@gmail.com>
Elad Salomons <selad@optiwater.com> Elad Salomons <selad@optiwater.com>
Demetrios Eliades <eldemet@gmail.com>
# Generated by tools/update-authors.sh

View File

@@ -1,22 +1,31 @@
#!/bin/sh #!/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 ' git log --reverse --format='%aN <%aE>' | perl -we '
BEGIN { BEGIN {
%seen = (), @authors = (); %seen = (), @authors = ();
} }
## must manually add Lew first, since he generated the code prior to CVS
push @authors, "Lew Rossman <LRossman\@cinci.rr.com>\n";
while (<>) { while (<>) {
next if $seen{$_}; next if $seen{$_};
next if /\@chromium.org/; next if /orquina.jessica\@epa.gov/; ## this individual never authored code; just init-ed the repo
next if /<erik.corry\@gmail.com>/;
$seen{$_} = push @authors, $_; $seen{$_} = push @authors, $_;
} }
END { END {
print "# Authors ordered by first contribution.\n"; print "# Authors ordered by first contribution.\n";
print "\n", @authors, "\n";
print "# Generated by tools/update-authors.sh\n"; print "# Generated by tools/update-authors.sh\n";
print "\n", @authors;
} }
' > ../AUTHORS ' > ../AUTHORS