diff options
author | Jim Meyering <meyering@redhat.com> | 2008-11-17 12:05:27 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-01 10:56:49 +0100 |
commit | 9a008a9e24166375cf512457155d38c760c89258 (patch) | |
tree | 5ca152b2e230f1829ebaa569ad694d580d78f7b8 /thanks-gen | |
parent | 6b3f52e94f88267abd918afe2204ac19f78a7093 (diff) | |
download | coreutils-9a008a9e24166375cf512457155d38c760c89258.tar.xz |
maint: generate much of the THANKS file
Before this change, we had a tendency to manually list each
contributor's name in THANKS. Now, each commit "Author" is
included in the generated THANKS file automatically, and most
of the old THANKS file is now a template, THANKS.in.
We'll still have to manually list the names of people who report
problems without a usable patch.
* THANKS.in: New file, derived from THANKS, but removing names of
those who are listed as git log 'Author:'s.
* THANKS: Remove file.
* thanks-gen: New file.
* Makefile.am (THANKS): New rule.
(EXTRA_DIST): Add .mailmap, THANKS.in and thanks-gen.
* .gitignore: Add THANKS and THANKS-to-translators.
* .mailmap: Unify on single address and name-spelling per contributor.
Diffstat (limited to 'thanks-gen')
-rwxr-xr-x | thanks-gen | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/thanks-gen b/thanks-gen new file mode 100755 index 000000000..f1c11b3a5 --- /dev/null +++ b/thanks-gen @@ -0,0 +1,16 @@ +#!/usr/bin/perl -nl +# Use Perl's multi-byte alignment code, via sprintf, while +# performing a rudimentary check for duplicate names and +# removing duplicate name,email pairs. +use Encode; + +BEGIN { my (%seen, %name) } + +chomp; +my ($name, $email) = split '\0', decode ('UTF-8', $_); + +$seen{$name}++ + and warn "$0: THANKS.in: duplicate name: $name\n"; + +print encode ('UTF-8', sprintf ('%-36s', $name)), $email + unless $seen{"$name\0$email"}++; |