X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fbuildtoc.PL;h=bb6d0d3ad0aaeeb539619f48ca50a246bda7807c;hb=8a36125691db1d8f79e98507373cbc6ea47271d4;hp=140d214aeab2d86763a5016eb55b6c01d0e93a3c;hpb=d396a55899b7bce58ef6008d9af7a500b5175b4a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/buildtoc.PL b/pod/buildtoc.PL index 140d214..bb6d0d3 100644 --- a/pod/buildtoc.PL +++ b/pod/buildtoc.PL @@ -59,8 +59,43 @@ if (-d "pod") { die "$0: failed to chdir('pod'): $!\n" unless chdir("pod"); } -@pods = qw( +@ARCHPODS = qw( + perlaix + perlapollo + perlamiga + perlbeos + perlbs2000 + perlce + perlcygwin + perldgux + perldos + perlepoc + perlhpux + perlhurd + perlmachten + perlmacos + perlmint + perlmpeix + perlnetware + perlos2 + perlos390 + perlqnx + perlplan9 + perlsolaris + perltru64 + perluts + perlvmesa + perlvms + perlvos + perlwin32 + ); + +@pods = + ( + qw( + perl + perlintro perlfaq perltoc perlbook @@ -74,6 +109,7 @@ if (-d "pod") { perldsc perlrequick perlpod + perlpodspec perlstyle perltrap @@ -95,7 +131,7 @@ if (-d "pod") { perlboot perltoot - perltootc + perltooc perlobj perlbot perltie @@ -103,7 +139,9 @@ if (-d "pod") { perlipc perlfork perlnumber + perlthrtut + perlothrtut perlport perllocale @@ -113,8 +151,9 @@ if (-d "pod") { perlsec perlmod - perlmodlib perlmodinstall + perlmodlib + perlmodstyle perlnewmod perlfaq1 @@ -133,6 +172,7 @@ if (-d "pod") { perldebguts perlxstut perlxs + perlclib perlguts perlcall perlutil @@ -140,40 +180,26 @@ if (-d "pod") { perldbmfilter perlapi perlintern + perliol perlapio perltodo perlhack perlhist perldelta + perl572delta + perl571delta + perl570delta perl56delta perl5005delta perl5004delta - perlamiga - perlcygwin - perldos - perlhpux - perlmachten - perlos2 - perlos390 - perlposix-bc - perlvms - perlwin32 - ); + ), + + @ARCHPODS + + ); -@ARCHPODS = qw( - perlamiga - perlcygwin - perldos - perlhpux - perlmachten - perlos2 - perlos390 - perlposix-bc - perlvms - perlwin32 - ); for (@ARCHPODS) { s/$/.pod/ } @ARCHPODS{@ARCHPODS} = (); @@ -261,6 +287,7 @@ sub getpods { 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 =~ m!lib/Attribute/Handlers/demo/!; die "tut $name" if $file =~ /TUT/; unless (open (F, "< $_\0")) { @@ -326,7 +353,7 @@ podset( @modules[ sort { $modname[$a] cmp $modname[$b] } 0 .. $#modules ] ); Here should be listed all the extra programs' documentation, but they don't all have manual pages yet: - =over + =over 4 =item a2p @@ -379,13 +406,13 @@ sub podset { } if (s/^=head1 (.*)/=item $1/) { unhead2(); - output "=over\n\n" unless $inhead1; + output "=over 4\n\n" unless $inhead1; $inhead1 = 1; output $_; nl(); next; } if (s/^=head2 (.*)/=item $1/) { unitem(); - output "=over\n\n" unless $inhead2; + output "=over 4\n\n" unless $inhead2; $inhead2 = 1; output $_; nl(); next; } @@ -397,7 +424,7 @@ sub podset { s/\s+$//; next if /^[\d.]+$/; next if $pod eq 'perlmodlib' && /^ftp:/; - ##print "=over\n\n" unless $initem; + ##print "=over 4\n\n" unless $initem; output ", " if $initem; $initem = 1; s/\.$//; @@ -472,3 +499,7 @@ sub output ($) { !NO!SUBS! +close OUT or die "Can't close $file: $!"; +chmod 0755, $file or die "Can't reset permissions for $file: $!\n"; +exec("$Config{'eunicefix'} $file") if $Config{'eunicefix'} ne ':'; +chdir $origdir;