diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-authors.sh | 22 |
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 |