summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-01-22 11:35:12 +0000
committerNicholas Clark <nick@ccl4.org>2011-01-22 11:35:12 +0000
commit15e7524267604acab10d2b726fc1e74d674fa4d2 (patch)
tree78128ff8f1ae3f077530c16697383b201a98768e
parent02cc404a20a8a3455fdf6de6ebfceeaf359b205e (diff)
downloadperl-15e7524267604acab10d2b726fc1e74d674fa4d2.tar.gz
In buildtoc, only "find all the modules" if rebuilding pod/perltoc.pod
The results of the expensive scan aren't needed for any of the other targets.
-rw-r--r--pod/buildtoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/buildtoc b/pod/buildtoc
index e4764b06eb..452d5913be 100644
--- a/pod/buildtoc
+++ b/pod/buildtoc
@@ -260,7 +260,7 @@ close MASTER;
}
# Find all the modules
-{
+if ($Build{toc}) {
my @modpods;
find \&getpods => abs_from_top('lib/');