From b499806ed6e0c55ac1ae3ec39cb974960e70040b Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Thu, 21 May 2015 22:34:28 -0700 Subject: doc: use a preversion script to update AUTHORS --- scripts/update-authors.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3