mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-27 20:14:02 +08:00
9a008a9e24
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.
17 lines
441 B
Perl
Executable File
17 lines
441 B
Perl
Executable File
#!/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"}++;
|