]>
Commit | Line | Data |
---|---|---|
35b2c95a AM |
1 | diff -urNp -x '*.orig' apache_1.3.42.org/src/support/apxs.pl apache_1.3.42/src/support/apxs.pl |
2 | --- apache_1.3.42.org/src/support/apxs.pl 2023-02-02 22:42:09.429834914 +0100 | |
3 | +++ apache_1.3.42/src/support/apxs.pl 2023-02-02 22:42:09.649834915 +0100 | |
4 | @@ -68,6 +68,7 @@ my $opt_i = 0; | |
942f06d1 JB |
5 | my $opt_a = 0; |
6 | my $opt_A = 0; | |
7 | my $opt_q = 0; | |
8 | +my $opt_v = 0; | |
9 | ||
35b2c95a AM |
10 | # default for DSO file extension |
11 | my $dso_ext = "so"; | |
12 | @@ -153,7 +154,7 @@ sub usage { | |
942f06d1 JB |
13 | |
14 | # option handling | |
15 | my $rc; | |
16 | -($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+S+eiaA", @ARGV); | |
17 | +($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+S+eiaAv", @ARGV); | |
18 | &usage if ($rc == 0); | |
19 | &usage if ($#ARGV == -1 and not $opt_g); | |
20 | &usage if (not $opt_q and not ($opt_g and $opt_n) and not $opt_i and not $opt_c and not $opt_e); | |
35b2c95a | 21 | @@ -210,7 +211,9 @@ sub execute_cmds { |
942f06d1 JB |
22 | my ($cmd, $rc); |
23 | ||
24 | foreach $cmd (@cmds) { | |
25 | - print STDERR "$cmd\n"; | |
26 | + if ($opt_v or not $opt_e) { | |
27 | + print STDERR "$cmd\n"; | |
28 | + } | |
29 | $rc = system("$cmd"); | |
30 | if ($rc != 0) { | |
31 | printf(STDERR "apxs:Break: Command failed with rc=%d\n", $rc >> 8); |