mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-12-05 05:04:20 +00:00
18 lines
403 B
Bash
18 lines
403 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# generate AUTHORS, modify .mailmap in case of duplicates
|
||
|
git log --reverse --format='%aN <%aE>' | perl -we '
|
||
|
BEGIN {
|
||
|
%seen = (), @authors = ();
|
||
|
}
|
||
|
while (<>) {
|
||
|
next if $seen{$_};
|
||
|
$seen{$_} = push @authors, $_;
|
||
|
}
|
||
|
END {
|
||
|
print "# Authors ordered by first contribution.\n";
|
||
|
print "\n", @authors, "\n";
|
||
|
print "# Generated by tools/authors.sh\n";
|
||
|
}
|
||
|
' > "${BASH_SOURCE%/*}/../AUTHORS"
|