X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fbuildtoc.PL;h=3585b7d892e5271b797c6f66d8ea7c955d05ad9b;hb=b30f304ae36b3931349d7d5816f5a5646afe5397;hp=601aa75ece26ed859ea29f03644f82beb2b7a3aa;hpb=890a53b979262c647cff6eff22d9cf68bc23d720;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/buildtoc.PL b/pod/buildtoc.PL index 601aa75..3585b7d 100644 --- a/pod/buildtoc.PL +++ b/pod/buildtoc.PL @@ -70,15 +70,19 @@ if (-d "pod") { perldgux perldos perlepoc + perlfreebsd perlhpux perlhurd + perlirix perlmachten perlmacos + perlmacosx perlmint perlmpeix perlnetware perlos2 perlos390 + perlos400 perlqnx perlplan9 perlsolaris @@ -90,11 +94,19 @@ if (-d "pod") { perlwin32 ); +@CJKPODS = qw( + perlcn + perljp + perlko + perltw + ); + @pods = ( qw( perl + perlintro perlfaq perltoc perlbook @@ -108,6 +120,7 @@ if (-d "pod") { perldsc perlrequick perlpod + perlpodspec perlstyle perltrap @@ -120,6 +133,7 @@ if (-d "pod") { perlvar perllol perlopentut + perlpacktut perlretut perlre @@ -143,14 +157,16 @@ if (-d "pod") { perlport perllocale + perluniintro perlunicode perlebcdic perlsec perlmod - perlmodlib perlmodinstall + perlmodlib + perlmodstyle perlnewmod perlfaq1 @@ -181,25 +197,35 @@ if (-d "pod") { perlapio perltodo perlhack + perldoc perlhist perldelta + perl58delta + perl573delta perl572delta perl571delta perl570delta + perl561delta perl56delta perl5005delta perl5004delta + perlartistic + perlgpl + ), - @ARCHPODS + @ARCHPODS, ); for (@ARCHPODS) { s/$/.pod/ } @ARCHPODS{@ARCHPODS} = (); +for (@CJKPODS) { s/$/.pod/ } +@CJKPODS{@CJKPODS} = (); + for (@pods) { s/$/.pod/ } @pods{@pods} = (); @PODS{@PODS} = (); @@ -226,6 +252,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 @@ -234,7 +265,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}; } @@ -280,13 +311,15 @@ 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!(?:^|/)t/!; return if $file =~ m!lib/Attribute/Handlers/demo/!; - - die "tut $name" if $file =~ /TUT/; + 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; + return if $file =~ m!XS/(?:APItest|Typemap)!; + die "tut $name" if $file =~ /TUT/; unless (open (F, "< $_\0")) { warn "bogus <$file>: $!"; system "ls", "-l", $file;