You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
521 B

4 years ago
  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