diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-04-19 16:51:50 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-04-19 16:51:50 +0100 |
commit | 8e7bc40f984b4f08395a1bcfe16b07c2d5539282 (patch) | |
tree | 011c8fbd6799231418e1b1a088f4073ecfadef35 /pod/buildtoc | |
parent | 6d664f0724b2b753e67c1deeb2cd51249536ee95 (diff) | |
download | perl-8e7bc40f984b4f08395a1bcfe16b07c2d5539282.tar.gz |
Move the symlink fo perl51110delta.pod to perldelta.pod to a top level rule.
Add perldelta.pod to the generated_pods macro so that it is deleted still.
Diffstat (limited to 'pod/buildtoc')
-rw-r--r-- | pod/buildtoc | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pod/buildtoc b/pod/buildtoc index 3f3dde49ad..1ca0fdb006 100644 --- a/pod/buildtoc +++ b/pod/buildtoc @@ -698,14 +698,25 @@ sub do_unix { my $makefile_SH = join '', @_; die "$0: $name contains NUL bytes" if $makefile_SH =~ /\0/; - $makefile_SH =~ s/\n\s+-\@test -f \S+ && cd pod && \$\(LNS\) \S+ \S+ && cd \.\. && echo "\S+" >> extra.pods \# See buildtoc\n/\0/gm; + $makefile_SH =~ s{^(generated_pods = extra.pods).*} + {join ' ', $1, map "pod/$_", sort keys %Generated, keys %Copies}mge; + +# pod/perldelta.pod: pod/perl511delta.pod +# cd pod && $(LNS) perl511delta.pod perldelta.pod + + $makefile_SH =~ s!( +pod/perl[a-z0-9_]+\.pod: pod/perl[a-z0-9_]+\.pod + cd pod && \$\(LNS\) perl[a-z0-9_]+\.pod perl[a-z0-9_]+\.pod +)+!\0!gm; verify_contiguous($name, $makefile_SH, 'copy rules'); - my @copy_rules = map "\t-\@test -f pod/$Copies{$_} && cd pod && \$(LNS) $Copies{$_} $_ && cd .. && echo \"pod/$_\" >> extra.pods # See buildtoc", - keys %Copies; + my @copy_rules = map " +pod/$_: pod/$Copies{$_} + cd pod && \$(LNS) $Copies{$_} $_ +", keys %Copies; - $makefile_SH =~ s/\0+/join "\n", '', @copy_rules, ''/se; + $makefile_SH =~ s/\0+/join '', @copy_rules/se; $makefile_SH; } |