0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/tools/update-authors.sh
Rod Vagg 53ba494537 doc: update AUTHORS, .mailmap, add authors tool
PR-URL: https://github.com/iojs/io.js/pull/232
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-07 12:40:29 +11:00

28 lines
456 B
Bash
Executable File

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