my ($committer, $patch, $author);
use utf8;
use Getopt::Long;
+use Unicode::Collate;
use Text::Wrap;
$Text::Wrap::columns = 80;
sub list_authors {
my ($patchers, $authors) = @_;
binmode(STDOUT, ":utf8");
- print wrap '', '', join(', ', sort { lc $a cmp lc $b }
+ print wrap '', '', join(', ', Unicode::Collate->new(level => 1)->sort(
map { $authors->{$_} }
- keys %$patchers) . ".\n";
+ keys %$patchers)) . ".\n";
}
sub parse_commits_from_stdin {
print "ok $count - ".$real_names->{$_} ." $_\n";
} else {
print "not ok $count - Contributor not found in AUTHORS: $_ ".($real_names->{$_} || '???' )."\n";
+ print STDERR ($real_names->{$_} || '???' )." <$_> not found in AUTHORS\n";
}
}
#
# Try to find the author
#
- while (my ($email, $author_name) = each %authors) {
- if ($name eq $author_name) {
- $addr = $email;
- $real_name = $name;
- last;
+ if (exists $map->{$name}) {
+ $addr = $map->{$name};
+ $real_name = $authors{$addr};
+ }
+ else {
+ while (my ($email, $author_name) = each %authors) {
+ if ($name eq $author_name) {
+ $addr = $email;
+ $real_name = $name;
+ last;
+ }
}
}
}
# List of mappings. First entry the "correct" email address, as appears
# in the AUTHORS file. Second is any "alias" mapped to it.
#
-# If the "correct" email address is a '+', the entry above is reused;
+# If the "correct" email address is a '+', the entry above it is reused;
# this for addresses with more than one alias.
#
# Note that all entries are in lowercase. Further, no '@' signs should
+ jhi\100hut.fi
+ jarkko.hietaniemi\100nokia.com
+ jarkko.hietaniemi\100cc.hut.fi
++ jarkko.hietaniemi\100booking.com
jesse jesse\100bestpractical.com
+ jesse\100fsck.com
+ jesse\100perl.org
+ tim.bunce\100ig.co.uk
tonyc tony\100develop-help.com
+ tony\100openbsd32.tony.develop-help.com
++ tony\100saturn.(none)
#
# Mere mortals.
+ 2bfjdsla52kztwejndzdstsxl9athp\100gmail.com
brian.d.foy\100gmail.com bdfoy\100cpan.org
BQW10602\100nifty.com sadahiro\100cpan.org
+bulk88\100hotmail.com bulk88
+chad.granum\100dreamhost.com exodist7\100gmail.com
+choroba\100cpan.org choroba\100weed.(none)
chromatic\100wgz.org chromatic\100rmci.net
+ckuskie\100cadence.com colink\100perldreamer.com
claes\100surfar.nu claes\100versed.se
clintp\100geeksalad.org cpierce1\100ford.com
clkao\100clkao.org clkao\100bestpractical.com
dairiki\100dairiki.org dairiki at dairiki.org
dagolden\100cpan.org xdaveg\100gmail.com
++ xdg\100xdg.me
damian\100conway.org damian\100cs.monash.edu.au
dan\100sidhe.org sugalsd\100lbcc.cc.or.us
+ sugalskd\100osshe.edu
daniel\100bitpusher.com daniel\100biz.bitpusher.com
david.dyck\100fluke.com dcd\100tc.fluke.com
-david\100kineticode.com david\100wheeler.com
+david\100justatheory.com david\100wheeler.net
++ david\100kineticode.com
++ david\100wheeler.com
+ david\100wheeler.net
dennis\100booking.com dennis\100camel.ams6.corp.booking.com
+ dennis.kaarsemaker\100booking.com
dev-perl\100pimb.org knew-p5p\100pimb.org
+ lists-p5p\100pimb.org
djberg86\100attbi.com djberg96\100attbi.com
+dk\100tetsuo.karasik.eu.org dmitry\100karasik.eu.org
domo\100computer.org shouldbedomo\100mac.com
+ domo\100slipper.ip.lu
+ domo\100tcp.ip.lu
gerard\100ggoossen.net gerard\100tty.nl
gibreel\100pobox.com stephen.zander\100interlock.mckesson.com
+ srz\100loopback
+gideon\100cpan.org gidisrael\100gmail.com
gnat\100frii.com gnat\100prometheus.frii.com
gp\100familiehaase.de gerrit\100familiehaase.de
grazz\100pobox.com grazz\100nyc.rr.com
gward\100ase.com greg\100bic.mni.mcgill.ca
+haggai\100cpan.org alanhaggai\100alanhaggai.org
++ alanhaggai\100gmail.com
hansmu\100xs4all.nl hansm\100icgroup.nl
+ hansm\100icgned.nl
+ hans\100icgned.nl
ingo_weinhold\100gmx.de bonefish\100cs.tu-berlin.de
james\100mastros.biz theorb\100desert-island.me.uk
-jand\100activestate.com jan.dubois\100ibm.net
+jan\100jandubois.com jand\100activestate.com
++ jan.dubois\100ibm.net
japhy\100pobox.com japhy\100pobox.org
+ japhy\100perlmonk.org
+ japhy\100cpan.org
+ jdhedden\100gmail.com
+ jdhedden\100yahoo.com
+ jhedden\100pn100-02-2-356p.corp.bloomberg.com
++ jdhedden\100solydxk
jeremy\100zawodny.com jzawodn\100wcnet.org
jesse\100sig.bsh.com jesse\100ginger
jfriedl\100yahoo.com jfriedl\100yahoo-inc.com
+ jhannah\100omnihotels.com
jidanni\100jidanni.org jidanni\100hoffa.dreamhost.com
jjore\100cpan.org twists\100gmail.com
+jkeenan\100cpan.org jkeen\100verizon.net
++ jkeenan\100dromedary-001.ams6.corp.booking.com
jns\100integration-house.com jns\100gellyfish.com
+ gellyfish\100gellyfish.com
john\100atlantech.com john\100titanic.atlantech.com
+ jpeacock\100jpeacock-hp.doesntexist.org
+ jpeacock\100cpan.org
+ jpeacock\100rowman.com
+jpl.jpl\100gmail.com jpl\100research.att.com
jql\100accessone.com jql\100jql.accessone.com
jsm28\100hermes.cam.ac.uk jsm28\100cam.ac.uk
keith.s.thompson\100gmail.com kst\100mib.org
ken\100mathforum.org kenahoo\100gmail.com
+ ken.williams\100thomsonreuters.com
+kentfredric\100gmail.com kentnl\100cpan.org
+kmx\100volny.cz kmx\100volny.cz
++ kmx\100cpan.org
kroepke\100dolphin-services.de kay\100dolphin-services.de
kst\100mib.org kst\100cts.com
+ kst\100SDSC.EDU
+ ml1050\100freemail.hu
lewart\100uiuc.edu lewart\100vadds.cvm.uiuc.edu
+ d-lewart\100uiuc.edu
-lkundrak\100v3.sk lubo.rintel\100gooddata.com
+lkundrak\100v3.sk lubo.rintel\100gooddata.com
lstein\100cshl.org lstein\100formaggio.cshl.org
+ lstein\100genome.wi.mit.edu
+l.mai\100web.de plokinom\100gmail.com
lupe\100lupe-christoph.de lupe\100alanya.m.isar.de
lutherh\100stratcom.com lutherh\100infinet.com
mab\100wdl.loral.com markb\100rdcf.sm.unisys.com
marcel\100codewerk.com gr\100univie.ac.at
++ hanekomu\100gmail.com
marcgreen\100cpan.org marcgreen\100wpi.edu
markleightonfisher\100gmail.com fisherm\100tce.com
mark.p.lutz\100boeing.com tecmpl1\100triton.ca.boeing.com
marty+p5p\100kasei.com marty\100martian.org
mats\100sm6sxl.net mats\100sm5sxl.net
mbarbon\100dsi.unive.it mattia.barbon\100libero.it
++ mattia\100barbon.org
mcmahon\100ibiblio.org mcmahon\100metalab.unc.edu
me\100davidglasser.net glasser\100tang-eleven-seventy-nine.mit.edu
merijnb\100iloquent.nl merijnb\100ms.com
# NOTE: There is an intentional trailing space in the line above
pfeifer\100wait.de pfeifer\100charly.informatik.uni-dortmund.de
+ upf\100de.uu.net
-rabbit\100rabbit.us rabbit+bugs\100rabbit.us
+ribasushi@cpan.org rabbit\100rabbit.us
++ rabbit+bugs\100rabbit.us
perl\100aaroncrane.co.uk arc\100cpan.org
phil\100perkpartners.com phil\100finchcomputer.com
pimlott\100idiomtech.com andrew\100pimlott.net
+ philip.newton\100datenrevision.de
+ pnewton\100gmx.de
pprymmer\100factset.com pvhp\100forte.com
-public\100khwilliamson.com khw\100karl.(none)
+khw\100cpan.org khw\100karl.(none)
++ public\100khwilliamson.com
+ khw\100khw-desktop.(none)
radu\100netsoft.ro rgreab\100fx.ro
raphael.manfredi\100pobox.com raphael_manfredi\100grenoble.hp.com
module@renee-baecker.de renee.baecker\100smart-websolutions.de
+ reneeb\100reneeb-desktop.(none)
++ github@renee-baecker.de
+ otrs\100ubuntu.(none)
+ perl\100renee-baecker.de
richard.foley\100rfi.net richard.foley\100t-online.de
robin\100cpan.org robin\100kitsite.com
roderick\100argon.org roderick\100gate.net
+ roderick\100ibcinc.com
-root\100ub32.org argrath\100ub32.org
+argrath\100ub32.org root\100ub32.org
rootbeer\100teleport.com rootbeer\100redcat.com
+ tomphoenix\100unknown
rurban\100x-ray.at rurban\100cpan.org
+ rurban\100cpanel.net
+rvtol+news\100isolution.nl rvtol\100isolution.nl
sartak\100bestpractical.com sartak\100gmail.com
++ code\100sartak.org
sadinoff\100olf.com danny-cpan\100sadinoff.com
schubiger\100cpan.org steven\100accognoscere.org
+ sts\100accognoscere.org
+ simon\100othersideofthe.earth.li
+ simon\100cozens.net
+ simon\100netthink.co.uk
+lannings\100who.int lannings\100gmail.com
++ slanning\100cpan.org
slaven\100rezic.de slaven.rezic\100berlin.de
+ srezic\100iconmobile.com
+ srezic\100cpan.org
+ s.payrard\100wanadoo.fr
+ properler\100freesurf.fr
+ stef\100francenet.fr
+stevan\100cpan.org stevan.little\100iinteractive.com
sthoenna\100efn.org ysth\100raven.shiftboard.com
sisyphus1\100optusnet.com.au sisyphus\100cpan.org
tjenness\100cpan.org t.jenness\100jach.hawaii.edu
+ timj\100jach.hawaii.edu
tobez\100tobez.org tobez\100plab.ku.dk
-toddr\100cpanel.net toddr\100cpan.org
+toddr\100cpan.org toddr\100cpanel.net
tom\100compton.nu thh\100cyberscience.com
tom.horsley\100mail.ccur.com tom.horsley\100ccur.com
+ tom\100amber.ssd.hcsc.com
wolfsage\100gmail.com mhorsfall\100darmstadtium.(none)
yath\100yath.de yath-perlbug\100yath.de
-jkeen@verizon.net jkeenan@cpan.org