In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/02ced0262188511350deba28f67bc3a35ea38406?hp=67bdb7ae864de5b39b1d10dd96399b5163385d3c>

- Log -----------------------------------------------------------------
commit 02ced0262188511350deba28f67bc3a35ea38406
Author: Aaron Crane <[email protected]>
Date:   Sat Nov 12 13:55:50 2016 +0100

    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.
-----------------------------------------------------------------------

Summary of changes:
 installman | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/installman b/installman
index 60fbce3..53117ab 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;

--
Perl5 Master Repository

Reply via email to