]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: When help2man fails, let it show the reason.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Feb 2026 20:55:48 +0000 (21:55 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Feb 2026 20:55:48 +0000 (21:55 +0100)
This is needed for investigating failures in a CI environment.

* gettext-runtime/man/help2man (get_option_value): Pipe the program's stderr to
stderr, not to /dev/null.
* gettext-tools/man/help2man (get_option_value): Likewise.

gettext-runtime/man/help2man
gettext-tools/man/help2man

index 1d6702972825b39377183854a3386009f107bcd4..a55d86b2ca27fa2182ed10153ac7d340b37d5913 100755 (executable)
@@ -745,7 +745,7 @@ sub program_basename
 sub get_option_value
 {
     my ($prog, $opt) = @_;
-    my $stderr = $discard_stderr ? '/dev/null' : '&1';
+    my $stderr = $discard_stderr ? '&2' : '&1';
     my $value = join '',
        map { s/ +$//; expand $_ }
        map { dec $_ }
index 1d6702972825b39377183854a3386009f107bcd4..a55d86b2ca27fa2182ed10153ac7d340b37d5913 100755 (executable)
@@ -745,7 +745,7 @@ sub program_basename
 sub get_option_value
 {
     my ($prog, $opt) = @_;
-    my $stderr = $discard_stderr ? '/dev/null' : '&1';
+    my $stderr = $discard_stderr ? '&2' : '&1';
     my $value = join '',
        map { s/ +$//; expand $_ }
        map { dec $_ }