summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2015-01-02 16:16:21 +1100
committerRod Vagg <rod@vagg.org>2015-01-07 12:40:29 +1100
commit53ba494537259b18b346dc6150d6a100c557e08f (patch)
tree051372d18c3156a9ede2f6d06adc0070fbd4cd53 /tools
parent52e600a9c8655f578fae55d85e778b58d731201a (diff)
downloadandroid-node-v8-53ba494537259b18b346dc6150d6a100c557e08f.tar.gz
android-node-v8-53ba494537259b18b346dc6150d6a100c557e08f.tar.bz2
android-node-v8-53ba494537259b18b346dc6150d6a100c557e08f.zip
doc: update AUTHORS, .mailmap, add authors tool
PR-URL: https://github.com/iojs/io.js/pull/232 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-authors.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/update-authors.sh b/tools/update-authors.sh
new file mode 100755
index 0000000000..f0944889b2
--- /dev/null
+++ b/tools/update-authors.sh
@@ -0,0 +1,27 @@
+#!/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