Files
webtorrent-desktop/bin/update-authors.sh
Feross Aboukhadijeh ddcf562b00 bin/update-authors.sh
2016-03-08 13:54:12 -08:00

20 lines
437 B
Bash
Executable File

#!/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