2016-03-16 22:24:15 +00:00
|
|
|
#!/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 /<yoann\@atacma.agency>/;
|
|
|
|
next if /<yciabaud\@users.noreply.github.com>/;
|
2016-03-18 22:09:38 +00:00
|
|
|
next if /<diegorbaquero\@gmail.com>/;
|
2016-03-16 22:24:15 +00:00
|
|
|
$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";
|
|
|
|
}
|
|
|
|
' > AUTHORS.md
|