Skip to content

Commit d33a647

Browse files
committed
doc: make tools/update-authors.sh cross-platform
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]>
1 parent 8453fbc commit d33a647

File tree

3 files changed

+27
-18
lines changed

3 files changed

+27
-18
lines changed

.mailmap

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Brandon Benvie <[email protected]> <[email protected]>
1919
Brian White <[email protected]>
2020
2121
Chew Choon Keat <[email protected]>
22+
Colin Ihrig <[email protected]>
2223
2324
Daniel Berger <[email protected]>
2425
Daniel Chcouri <[email protected]>
@@ -76,16 +77,20 @@ Mathias Pettersson <[email protected]>
7677
Michael Bernstein <[email protected]>
7778
Michael Wilber <[email protected]>
7879
80+
Micleusanu Nicu <[email protected]>
7981
Mikael Bourges-Sevenier <[email protected]> <[email protected]>
82+
8083
Mitar Milutinovic <[email protected]>
8184
Nebu Pookins<[email protected]>
8285
Nicholas Kinsey <[email protected]>
86+
Nikolai Vavilov <[email protected]>
8387
Onne Gorter <[email protected]>
8488
8589
Ray Morgan <[email protected]>
8690
Ray Solomon <[email protected]>
8791
8892
Rick Olson <[email protected]>
93+
Roman Reiss <[email protected]>
8994
Ryan Dahl <[email protected]>
9095
Ryan Emery <[email protected]>
9196
@@ -101,6 +106,7 @@ Siddharth Mahendraker <[email protected]> <[email protected]>
101106
Simon Willison <[email protected]>
102107
Stanislav Opichal <[email protected]>
103108
Stefan Bühler <[email protected]>
109+
Steven R. Loomis <[email protected]>
104110
TJ Holowaychuk <[email protected]>
105111
106112
Tadashi SAWADA <[email protected]>
@@ -117,6 +123,9 @@ Trevor Burnham <[email protected]> <[email protected]>
117123
Tyler Larson <[email protected]>
118124
Vincent Voyer <[email protected]>
119125
Willi Eggeling <[email protected]>
126+
Yazhong Liu <[email protected]> Yazhong Liu <[email protected]>
127+
Yazhong Liu <[email protected]> Yorkie <[email protected]>
128+
Yazhong Liu <[email protected]> Yorkie <[email protected]>
120129
Yoshihiro KIKUCHI <[email protected]>
121130
Yuichiro MASUI <[email protected]>
122131

AUTHORS

+8-3
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ Ryan Graham <[email protected]>
444444
Kelly Gerber <[email protected]>
445445
Ryan Doenges <[email protected]>
446446
Sean Silva <[email protected]>
447-
Miroslav Bajtoš <miro.bajtos@gmail.com>
447+
Miroslav Bajtoš <miroslav@strongloop.com>
448448
Olof Johansson <[email protected]>
449449
Sam Roberts <[email protected]>
450450
Kevin Locke <[email protected]>
@@ -517,7 +517,6 @@ Cam Swords <[email protected]>
517517
Paul Loyd <[email protected]>
518518
Benjamin Waters <[email protected]>
519519
Lev Gimelfarb <[email protected]>
520-
521520
pflannery <[email protected]>
522521
Tuğrul Topuz <[email protected]>
523522
Lorenz Leutgeb <[email protected]>
@@ -655,7 +654,7 @@ Evan Torrie <[email protected]>
655654
656655
brian m. carlson <[email protected]>
657656
Kevin O'Hara <[email protected]>
658-
657+
Micleusanu Nicu <[email protected]>
659658
Alejandro Oviedo <[email protected]>
660659
Ben Burns <[email protected]>
661660
Julian Duque <[email protected]>
@@ -723,5 +722,11 @@ Ryan Scheel <[email protected]>
723722
Benjamin Gruenbaum <[email protected]>
724723
Pavel Medvedev <[email protected]>
725724
Russell Dempsey <[email protected]>
725+
&! (bitandbang) <[email protected]>
726+
727+
Michael Dawson <[email protected]>
728+
Ruben Verborgh <[email protected]>
729+
Ken Perkins <[email protected]>
730+
Malte-Thorben Bruns <[email protected]>
726731

727732
# Generated by tools/update-authors.sh

tools/update-authors.sh

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
#!/bin/sh
22

3-
git log --reverse --format='%aN <%aE>' | awk '
3+
git log --reverse --format='%aN <%aE>' | perl -we '
44
55
BEGIN {
6-
print "# Authors ordered by first contribution.\n";
7-
8-
# explicit excludes
9-
excludes["<[email protected]>"] = 1 # chromium team
6+
%seen = (), @authors = ();
107
}
118
12-
{
13-
if ($NF !~ /@chromium.org/ && all[$NF] != 1 && excludes[$NF] != 1) {
14-
all[$NF] = 1;
15-
ordered[length(all)] = $0;
16-
}
9+
while (<>) {
10+
next if $seen{$_};
11+
next if /\@chromium.org/;
12+
next if /<erik.corry\@gmail.com>/;
13+
$seen{$_} = push @authors, $_;
1714
}
1815
1916
END {
20-
for (i in ordered) {
21-
print ordered[i];
22-
}
23-
24-
print "\n# Generated by tools/update-authors.sh";
17+
print "# Authors ordered by first contribution.\n";
18+
print "\n", @authors, "\n";
19+
print "# Generated by tools/update-authors.sh\n";
2520
}
2621
2722
' > AUTHORS

0 commit comments

Comments
 (0)