Skip to content

Commit

Permalink
doc: make tools/update-authors.sh cross-platform
Browse files Browse the repository at this point in the history
And by cross-platform I mean Linux and OS X.  The awk script is not
compatible with BSD awk, that's why this commit changes it to perl.

Update the .mailmap to remove some duplicates and regenerate the
AUTHORS file.

Fixes: #1120
PR-URL: #1121
Reviewed-By: Rod Vagg <[email protected]>
  • Loading branch information
bnoordhuis committed Mar 11, 2015
1 parent 8453fbc commit d33a647
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
9 changes: 9 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Brandon Benvie <[email protected]> <[email protected]>
Brian White <[email protected]>
Brian White <[email protected]> <[email protected]>
Chew Choon Keat <[email protected]>
Colin Ihrig <[email protected]>
Christopher Lenz <[email protected]> <[email protected]>
Daniel Berger <[email protected]>
Daniel Chcouri <[email protected]>
Expand Down Expand Up @@ -76,16 +77,20 @@ Mathias Pettersson <[email protected]>
Michael Bernstein <[email protected]>
Michael Wilber <[email protected]>
Micheil Smith <[email protected]> <[email protected]>
Micleusanu Nicu <[email protected]>
Mikael Bourges-Sevenier <[email protected]> <[email protected]>
Miroslav Bajtoš <[email protected]> <[email protected]>
Mitar Milutinovic <[email protected]>
Nebu Pookins<[email protected]>
Nicholas Kinsey <[email protected]>
Nikolai Vavilov <[email protected]>
Onne Gorter <[email protected]>
Paul Querna <[email protected]> <[email protected]>
Ray Morgan <[email protected]>
Ray Solomon <[email protected]>
Raymond Feng <[email protected]> <[email protected]>
Rick Olson <[email protected]>
Roman Reiss <[email protected]>
Ryan Dahl <[email protected]>
Ryan Emery <[email protected]>
Sam Shull <[email protected]> <[email protected]>
Expand All @@ -101,6 +106,7 @@ Siddharth Mahendraker <[email protected]> <[email protected]>
Simon Willison <[email protected]>
Stanislav Opichal <[email protected]>
Stefan Bühler <[email protected]>
Steven R. Loomis <[email protected]>
TJ Holowaychuk <[email protected]>
TJ Holowaychuk <[email protected]> <[email protected]>
Tadashi SAWADA <[email protected]>
Expand All @@ -117,6 +123,9 @@ Trevor Burnham <[email protected]> <[email protected]>
Tyler Larson <[email protected]>
Vincent Voyer <[email protected]>
Willi Eggeling <[email protected]>
Yazhong Liu <[email protected]> Yazhong Liu <[email protected]>
Yazhong Liu <[email protected]> Yorkie <[email protected]>
Yazhong Liu <[email protected]> Yorkie <[email protected]>
Yoshihiro KIKUCHI <[email protected]>
Yuichiro MASUI <[email protected]>
Zachary Scott <[email protected]> <[email protected]>
Expand Down
11 changes: 8 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Ryan Graham <[email protected]>
Kelly Gerber <[email protected]>
Ryan Doenges <[email protected]>
Sean Silva <[email protected]>
Miroslav Bajtoš <miro.bajtos@gmail.com>
Miroslav Bajtoš <miroslav@strongloop.com>
Olof Johansson <[email protected]>
Sam Roberts <[email protected]>
Kevin Locke <[email protected]>
Expand Down Expand Up @@ -517,7 +517,6 @@ Cam Swords <[email protected]>
Paul Loyd <[email protected]>
Benjamin Waters <[email protected]>
Lev Gimelfarb <[email protected]>
Yorkie <[email protected]>
pflannery <[email protected]>
Tuğrul Topuz <[email protected]>
Lorenz Leutgeb <[email protected]>
Expand Down Expand Up @@ -655,7 +654,7 @@ Evan Torrie <[email protected]>
Juanjo <[email protected]>
brian m. carlson <[email protected]>
Kevin O'Hara <[email protected]>
micnic <[email protected]>
Micleusanu Nicu <[email protected]>
Alejandro Oviedo <[email protected]>
Ben Burns <[email protected]>
Julian Duque <[email protected]>
Expand Down Expand Up @@ -723,5 +722,11 @@ Ryan Scheel <[email protected]>
Benjamin Gruenbaum <[email protected]>
Pavel Medvedev <[email protected]>
Russell Dempsey <[email protected]>
&! (bitandbang) <[email protected]>
h7lin <[email protected]>
Michael Dawson <[email protected]>
Ruben Verborgh <[email protected]>
Ken Perkins <[email protected]>
Malte-Thorben Bruns <[email protected]>

# Generated by tools/update-authors.sh
25 changes: 10 additions & 15 deletions tools/update-authors.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
#!/bin/sh

git log --reverse --format='%aN <%aE>' | awk '
git log --reverse --format='%aN <%aE>' | perl -we '
BEGIN {
print "# Authors ordered by first contribution.\n";
# explicit excludes
excludes["<[email protected]>"] = 1 # chromium team
%seen = (), @authors = ();
}
{
if ($NF !~ /@chromium.org/ && all[$NF] != 1 && excludes[$NF] != 1) {
all[$NF] = 1;
ordered[length(all)] = $0;
}
while (<>) {
next if $seen{$_};
next if /\@chromium.org/;
next if /<erik.corry\@gmail.com>/;
$seen{$_} = push @authors, $_;
}
END {
for (i in ordered) {
print ordered[i];
}
print "\n# Generated by tools/update-authors.sh";
print "# Authors ordered by first contribution.\n";
print "\n", @authors, "\n";
print "# Generated by tools/update-authors.sh\n";
}
' > AUTHORS

0 comments on commit d33a647

Please sign in to comment.