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