diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-authors.sh | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/scripts/update-authors.sh b/scripts/update-authors.sh index 326d21cc8..75a6e549b 100755 --- a/scripts/update-authors.sh +++ b/scripts/update-authors.sh @@ -1,18 +1,9 @@ #!/bin/sh -git log --reverse --format='%aN <%aE>' | perl -we ' - +git log --reverse --format='%aN <%aE>' | perl -wnE ' BEGIN { - %seen = (), @authors = (); -} - -while (<>) { - next if $seen{$_}; - $seen{$_} = push @authors, $_; + say "# Authors sorted by whether or not they\x27re me"; } -END { - print "# Authors sorted by whether or not they'\''re me\n"; - print @authors; -} +print $seen{$_} = $_ unless $seen{$_} ' > AUTHORS |