mirror of https://github.com/lukechilds/node.git
Browse Source
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: https://github.com/iojs/io.js/issues/1120 PR-URL: https://github.com/iojs/io.js/pull/1121 Reviewed-By: Rod Vagg <rod@vagg.org>v1.8.0-commit
Ben Noordhuis
10 years ago
3 changed files with 27 additions and 18 deletions
@ -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["<erik.corry@gmail.com>"] = 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 |
|||
|
Loading…
Reference in new issue