bin/update-authors.sh

This commit is contained in:
Feross Aboukhadijeh
2016-03-08 13:54:12 -08:00
parent 18fa84a92e
commit ddcf562b00
2 changed files with 2 additions and 2 deletions

19
bin/update-authors.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/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>/;
$seen{$_} = push @authors, "- ", $_;
}
END {
print "# Authors\n\n";
print "#### Ordered by first contribution.\n\n";
print @authors, "\n";
print "#### Generated by bin/update-authors.sh.\n\n";
}
' > AUTHORS.md