authors.sh 403 B

1234567891011121314151617
  1. #!/bin/bash
  2. # generate AUTHORS, modify .mailmap in case of duplicates
  3. git log --reverse --format='%aN <%aE>' | perl -we '
  4. BEGIN {
  5. %seen = (), @authors = ();
  6. }
  7. while (<>) {
  8. next if $seen{$_};
  9. $seen{$_} = push @authors, $_;
  10. }
  11. END {
  12. print "# Authors ordered by first contribution.\n";
  13. print "\n", @authors, "\n";
  14. print "# Generated by tools/authors.sh\n";
  15. }
  16. ' > "${BASH_SOURCE%/*}/../AUTHORS"