2016-03-16 22:24:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Update AUTHORS.md based on git history.
|
|
|
|
|
2016-08-06 05:44:11 +00:00
|
|
|
git log --reverse --format='%aN (%aE)' | perl -we '
|
2016-03-16 22:24:15 +00:00
|
|
|
BEGIN {
|
|
|
|
%seen = (), @authors = ();
|
|
|
|
}
|
|
|
|
while (<>) {
|
|
|
|
next if $seen{$_};
|
2016-08-06 05:44:11 +00:00
|
|
|
next if /(support\@greenkeeper.io)/;
|
|
|
|
next if /(yoann\@atacma.agency)/;
|
|
|
|
next if /(yciabaud\@users.noreply.github.com)/;
|
2017-03-08 17:37:03 +00:00
|
|
|
next if /(DiegoRBaquero\@users.noreply.github.com)/;
|
|
|
|
next if /(gustavcaplan\@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";
|
2018-05-01 23:32:42 +00:00
|
|
|
print "#### Generated by tools/update-authors.sh.\n";
|
2016-03-16 22:24:15 +00:00
|
|
|
}
|
|
|
|
' > AUTHORS.md
|