Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-03-09 00:40:33 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-03-09 00:40:33 +0300
commit0be199d431e72d7d37cf9596a205917730c22fe7 (patch)
tree1d7d0287d1ecd5fccf6b89a56d8889497df2305d /bin
parent510aa3e2565bb57ea4e41c72919a9e5f3c479ea0 (diff)
exclude duplicate author
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-authors.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/update-authors.sh b/bin/update-authors.sh
new file mode 100755
index 0000000..2b7fd79
--- /dev/null
+++ b/bin/update-authors.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+# Update AUTHORS.md based on git history.
+
+git log --reverse --format='%aN <%aE>' | perl -we '
+BEGIN {
+ %seen = (), @authors = ();
+}
+while (<>) {
+ next if $seen{$_};
+ next if /<support\@greenkeeper.io>/;
+ next if /<badger\@gitter.im>/;
+ next if /<y.ciabaud\@free.fr>/;
+ next if /<.*\@users.noreply.github.com>/;
+ $seen{$_} = push @authors, "- ", $_;
+}
+END {
+ print "# Authors\n\n";
+ print "#### Ordered by first contribution.\n\n";
+ print @authors, "\n";
+ print "#### Generated by tools/authors.sh.\n\n";
+}
+' > AUTHORS.md