Git fork

doc lint: emit errors on STDERR

Have all of the scripts invoked by "make check-docs" emit their output
on STDERR. This does not currently matter due to the way we're
invoking them, but will in a subsequent change. It's a good idea to do
this in any case for consistency with other tools we invoke.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Ævar Arnfjörð Bjarmason and committed by
Junio C Hamano
f005593d 7e19e2ef

+4 -4
+2 -2
Documentation/lint-gitlink.perl
··· 30 my ($pos, $line, $target, $msg) = @_; 31 substr($line, $pos) = "' <-- HERE"; 32 $line =~ s/^\s+//; 33 - print "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n"; 34 - print "$ARGV:$.:\t'$line\n"; 35 $exit_code = 1; 36 } 37
··· 30 my ($pos, $line, $target, $msg) = @_; 31 substr($line, $pos) = "' <-- HERE"; 32 $line =~ s/^\s+//; 33 + print STDERR "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n"; 34 + print STDERR "$ARGV:$.:\t'$line\n"; 35 $exit_code = 1; 36 } 37
+1 -1
Documentation/lint-man-end-blurb.perl
··· 6 my $exit_code = 0; 7 sub report { 8 my ($target, $msg) = @_; 9 - print "error: $target: $msg\n"; 10 $exit_code = 1; 11 } 12
··· 6 my $exit_code = 0; 7 sub report { 8 my ($target, $msg) = @_; 9 + print STDERR "error: $target: $msg\n"; 10 $exit_code = 1; 11 } 12
+1 -1
Documentation/lint-man-section-order.perl
··· 46 my $exit_code = 0; 47 sub report { 48 my ($msg) = @_; 49 - print "$ARGV:$.: $msg\n"; 50 $exit_code = 1; 51 } 52
··· 46 my $exit_code = 0; 47 sub report { 48 my ($msg) = @_; 49 + print STDERR "$ARGV:$.: $msg\n"; 50 $exit_code = 1; 51 } 52