This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pod_rules.pl was always (re)building everything, not what was asked for.
authorNicholas Clark <nick@ccl4.org>
Tue, 20 Dec 2011 10:33:26 +0000 (11:33 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 20 Dec 2011 10:37:01 +0000 (11:37 +0100)
The bug was introduced by commit b78c110439167132, which split
Porting/pod_rules.pl out from pod/buildtoc. The previous code in buildtoc
would correctly honour the command line options, and only (re)build the
requested files.

Porting/pod_rules.pl

index d23f86f..689219a 100644 (file)
@@ -268,7 +268,7 @@ pod/$_: pod/$state->{copies}{$_}
 }
 
 # Do stuff
-while (my ($target, $name) = each %Targets) {
+while (my ($target, $name) = each %Build) {
     print "Now processing $name\n" if $Verbose;
 
     my $orig = slurp_or_die($name);