X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fbuildtoc.PL;h=acb45d610dff9a6a4ef2705c687725549f9eb025;hb=6ef2ffc08af34476e9926ec68d86cf931bd70156;hp=47972b7abfceddfde3e12056c6b15acb38c03863;hpb=493a87da815453c0627e215bbcb09ab491f2d3eb;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/buildtoc.PL b/pod/buildtoc.PL index 47972b7..acb45d6 100644 --- a/pod/buildtoc.PL +++ b/pod/buildtoc.PL @@ -70,8 +70,10 @@ if (-d "pod") { perldgux perldos perlepoc + perlfreebsd perlhpux perlhurd + perlirix perlmachten perlmacos perlmint @@ -90,6 +92,13 @@ if (-d "pod") { perlwin32 ); +@CJKPODS = qw( + perlcn + perljp + perlko + perltw + ); + @pods = ( qw( @@ -199,13 +208,16 @@ if (-d "pod") { ), - @ARCHPODS + @ARCHPODS, ); for (@ARCHPODS) { s/$/.pod/ } @ARCHPODS{@ARCHPODS} = (); +for (@CJKPODS) { s/$/.pod/ } +@CJKPODS{@CJKPODS} = (); + for (@pods) { s/$/.pod/ } @pods{@pods} = (); @PODS{@PODS} = (); @@ -232,6 +244,11 @@ die "$0: could not find the pod listing of perl.pod\n" unless @PERLPODS; @PERLPODS{@PERLPODS} = (); +# Delete the CJK because we cannot mix their encodings. +delete @PERLPODS{@CJKPODS}; +delete @PODS{@CJKPODS}; +delete @pods{@CJKPODS}; + # Cross-check against ourselves # Cross-check against the MANIFEST # Cross-check against the perl.pod @@ -240,7 +257,7 @@ foreach my $i (sort keys %PODS) { warn "$0: $i exists but is unknown by buildtoc\n" unless exists $pods{$i}; warn "$0: $i exists but is unknown by ../MANIFEST\n" - if !exists $MANIPODS{$i} && !exists $ARCHPODS{$i}; + if !exists $MANIPODS{$i} && !exists $ARCHPODS{$i} && !exists $CJKPODS{$i}; warn "$0: $i exists but is unknown by perl.pod\n" unless exists $PERLPODS{$i}; } @@ -286,15 +303,14 @@ find \&getpods => qw(../lib ../ext); sub getpods { if (/\.p(od|m)$/) { - # Skip .pm files that have corresponding .pod files, and Functions.pm. - return if /(.*)\.pm$/ && -f "$1.pod"; my $file = $File::Find::name; - return if $file eq '../lib/Pod/Functions.pm'; # Used only by pod itself + return if $file eq '../lib/Pod/Functions.pm'; # Used only by pod itself return if $file =~ m!lib/Attribute/Handlers/demo/!; - return if $file =~ m!lib/Net/FTP/.+\.pm!; # Hi, Graham! :-) + return if $file =~ m!lib/Net/FTP/.+\.pm!; # Hi, Graham! :-) return if $file =~ m!lib/Math/BigInt/t/!; - return if $file =~ m!/Devel/PPPort/[Hh]arness|lib/Devel/Harness!i; - die "tut $name" if $file =~ /TUT/; + return if $file =~ m!/Devel/PPPort/[Hh]arness|lib/Devel/Harness!i; + return if $file =~ m!XS/(?:APItest|Typemap)!; + die "tut $name" if $file =~ /TUT/; unless (open (F, "< $_\0")) { warn "bogus <$file>: $!"; system "ls", "-l", $file;