]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc lint: emit errors on STDERR
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 15 Oct 2021 12:39:12 +0000 (14:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Oct 2021 17:16:57 +0000 (10:16 -0700)
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>
Documentation/lint-gitlink.perl
Documentation/lint-man-end-blurb.perl
Documentation/lint-man-section-order.perl

index b22a367844a219a4206d5a96371eb60920268385..076701ccfac478681b22caf6f739c125e8e0bdc3 100755 (executable)
@@ -30,8 +30,8 @@ sub report {
        my ($pos, $line, $target, $msg) = @_;
        substr($line, $pos) = "' <-- HERE";
        $line =~ s/^\s+//;
-       print "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
-       print "$ARGV:$.:\t'$line\n";
+       print STDERR "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
+       print STDERR "$ARGV:$.:\t'$line\n";
        $exit_code = 1;
 }
 
index d69312e5db585ca98dc05d892fcccb0d2b7446cb..6bdb13ad9fdb36b8c8f5244fa66fb29c0f619cc7 100755 (executable)
@@ -6,7 +6,7 @@ use warnings;
 my $exit_code = 0;
 sub report {
        my ($target, $msg) = @_;
-       print "error: $target: $msg\n";
+       print STDERR "error: $target: $msg\n";
        $exit_code = 1;
 }
 
index b05f9156dd9800466d79d3178f388b7fc26a9397..425377dfeb7fc0856773fd5eaaac7dd3b7b1c999 100755 (executable)
@@ -46,7 +46,7 @@ my $SECTION_RX = do {
 my $exit_code = 0;
 sub report {
        my ($msg) = @_;
-       print "$ARGV:$.: $msg\n";
+       print STDERR "$ARGV:$.: $msg\n";
        $exit_code = 1;
 }