This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Turn on removal of dot in @INC by default:
[perl5.git] / installman
index 66b7161..53117ab 100755 (executable)
@@ -142,7 +142,7 @@ sub pod2man {
 
        unless ($has_pod)
        {
-           warn "no documentation in $mod\n" unless $opts{silent};
+           print "no documentation in $mod\n" if $opts{verbose};
            next;
        }
 
@@ -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;
@@ -174,9 +177,4 @@ sub pod2man {
 $packlist->write() unless $opts{notify};
 print "  Installation complete\n" if $opts{verbose};
 
-# Local variables:
-# cperl-indent-level: 4
-# indent-tabs-mode: nil
-# End:
-#
 # ex: set ts=8 sts=4 sw=4 et: