-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: use a preversion script to update AUTHORS
- Loading branch information
Showing
3 changed files
with
6 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |