update-authors.sh 521 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # Update AUTHORS.md based on git history.
  3. git log --reverse --format='%aN (%aE)' | perl -we '
  4. BEGIN {
  5. %seen = (), @authors = ();
  6. }
  7. while (<>) {
  8. next if $seen{$_};
  9. next if /(support\@greenkeeper.io)/;
  10. next if /(dcousens\@users.noreply.github.com)/;
  11. next if /(cmetcalf\@appgeo.com)/;
  12. $seen{$_} = push @authors, "- ", $_;
  13. }
  14. END {
  15. print "# Authors\n\n";
  16. print "#### Ordered by first contribution.\n\n";
  17. print @authors, "\n";
  18. print "#### Generated by bin/update-authors.sh.\n";
  19. }
  20. ' > AUTHORS.md