diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-01-08 18:25:20 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-01-08 18:25:20 +0000 |
commit | bae7ea069768af8a1f89fc8983cfb4fce033a47e (patch) | |
tree | 36a7a3427523a43471a8488ce4e313785c804e9a | |
parent | d933dc9eee7771e117a050289ed31b0286699d55 (diff) | |
download | perl-bae7ea069768af8a1f89fc8983cfb4fce033a47e.tar.gz |
With VMS moving from [lib.pod] to [lib.pods] then pod/buildtoc needs
tweaking
p4raw-id: //depot/perl@26725
-rw-r--r-- | pod/buildtoc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pod/buildtoc b/pod/buildtoc index 7d5b01996b..705317a527 100644 --- a/pod/buildtoc +++ b/pod/buildtoc @@ -540,16 +540,16 @@ sub generate_descrip_mms_1 { local $Text::Wrap::columns = 150; my $count = 0; my @lines = map {"pod" . $count++ . " = $_"} - split /\n/, wrap('', '', join " ", map "[.lib.pod]$_.pod", + split /\n/, wrap('', '', join " ", map "[.lib.pods]$_.pod", sort keys %Pods, keys %Readmepods); @lines, "pod = " . join ' ', map {"\$(pod$_)"} 0 .. $count - 1; } sub generate_descrip_mms_2 { map {sprintf <<'SNIP', $_, $_ eq 'perlvms' ? 'vms' : 'pod', $_} -[.lib.pod]%s.pod : [.%s]%s.pod - @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod] - Copy/NoConfirm/Log $(MMS$SOURCE) [.lib.pod] +[.lib.pods]%s.pod : [.%s]%s.pod + @ If F$Search("[.lib]pods.dir").eqs."" Then Create/Directory [.lib.pods] + Copy/NoConfirm/Log $(MMS$SOURCE) [.lib.pods] SNIP sort keys %Pods, keys %Readmepods; } @@ -657,13 +657,13 @@ sub do_vms { die "$0: $name contains NUL bytes" if $makefile =~ /\0/; # Looking for rules like this -# [.lib.pod]perl.pod : [.pod]perl.pod -# @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod] -# Copy/NoConfirm/Log $(MMS$SOURCE) [.lib.pod] +# [.lib.pods]perl.pod : [.pod]perl.pod +# @ If F$Search("[.lib]pods.dir").eqs."" Then Create/Directory [.lib.pods] +# Copy/NoConfirm/Log $(MMS$SOURCE) [.lib.pods] - $makefile =~ s/\n\Q[.lib.pod]\Eperl[^\n\.]*\.pod[^\n]+\n + $makefile =~ s/\n\Q[.lib.pods]\Eperl[^\n\.]*\.pod[^\n]+\n [^\n]+\n # Another line - [^\n]+\Q[.lib.pod]\E\n # ends [.lib.pod] + [^\n]+\Q[.lib.pods]\E\n # ends [.lib.pods] /\0/gsx; $sections = () = $makefile =~ m/\0+/g; die "$0: $name contains no copy rules" if $sections < 1; |