summaryrefslogtreecommitdiff
path: root/installman
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2016-11-12 13:55:50 +0100
committerAaron Crane <arc@cpan.org>2016-11-12 13:55:50 +0100
commit02ced0262188511350deba28f67bc3a35ea38406 (patch)
tree78adeecb4bc89cffa68743e05586cace6fc53a1c /installman
parent67bdb7ae864de5b39b1d10dd96399b5163385d3c (diff)
downloadperl-02ced0262188511350deba28f67bc3a35ea38406.tar.gz
Reduce verbosity of "make install.man"
Previously, two progress messages were emitted for each manpage: one by installman itself, and one by the function in install_lib.pl that it calls to actually install the file. Disabling the second of those in each case saves over 750 lines of unhelpful output.
Diffstat (limited to 'installman')
-rwxr-xr-xinstallman3
1 files changed, 3 insertions, 0 deletions
diff --git a/installman b/installman
index 60fbce3bde..53117ab575 100755
--- a/installman
+++ b/installman
@@ -161,6 +161,9 @@ sub pod2man {
print " $xmanpage\n" unless $opts{silent};
if (!$opts{notify} && $parser->parse_from_file($mod, $tmp)) {
if (-s $tmp) {
+ # We've already emitted a progress message for this file, if
+ # needed, so ensure safe_rename() doesn't emit another one.
+ local $opts{silent} = 1;
if (safe_rename($tmp, $manpage)) {
$packlist->{$xmanpage} = { type => 'file' };
next;