diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-04-27 22:26:04 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-04-27 22:26:04 +0200 |
commit | ebd8c6da618f519bde2559b7db750e1185a7f9a2 (patch) | |
tree | dd7dc6fe46ad75ef8c34b9061c9e8ee6361603d1 | |
parent | 642786a5f68161ef9d69a88cbae6c97ecbc6de32 (diff) | |
download | automake-ebd8c6da618f519bde2559b7db750e1185a7f9a2.tar.gz |
silent-rules: fix alignment of less verbose output.
* automake.in (define_verbose_var): Define `$silent_var' as
VAR_ASIS, not VAR_PRETTY, to avoid squashing of multiple
adjacent spaces.
* tests/silent.test: Amend test.
Report by Jan Engelhardt.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
-rw-r--r-- | ChangeLog | 9 | ||||
-rwxr-xr-x | automake.in | 5 | ||||
-rwxr-xr-x | tests/silent.test | 2 |
3 files changed, 14 insertions, 2 deletions
@@ -1,3 +1,12 @@ +2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> + + silent-rules: fix alignment of less verbose output. + * automake.in (define_verbose_var): Define `$silent_var' as + VAR_ASIS, not VAR_PRETTY, to avoid squashing of multiple + adjacent spaces. + * tests/silent.test: Amend test. + Report by Jan Engelhardt. + 2009-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> manual: fix trivial grammar errors. diff --git a/automake.in b/automake.in index fe2ff3d78..20ef3bd2e 100755 --- a/automake.in +++ b/automake.in @@ -1158,12 +1158,15 @@ sub define_verbose_var ($$) my ($name, $val) = @_; my $var = verbose_var ($name); my $pvar = verbose_private_var ($name); + my $silent_var = $pvar . '_0'; if (option 'silent-rules') { # Using `$V' instead of `$(V)' breaks IRIX make. define_variable ($var, '$(' . $pvar . '_$(V))', INTERNAL); define_variable ($pvar . '_', '$(' . $pvar . '_$(AM_DEFAULT_VERBOSITY))', INTERNAL); - define_variable ($pvar . '_0', $val, INTERNAL); + Automake::Variable::define ($silent_var, VAR_AUTOMAKE, '', TRUE, $val, + '', INTERNAL, VAR_ASIS) + if (! vardef ($silent_var, TRUE)); } } diff --git a/tests/silent.test b/tests/silent.test index 4eb11d538..73d6bffec 100755 --- a/tests/silent.test +++ b/tests/silent.test @@ -66,7 +66,7 @@ cat stdout grep ' -c' stdout && Exit 1 grep ' -o foo' stdout && Exit 1 grep mv stdout && Exit 1 -grep 'CC .*foo\.' stdout +grep 'CC .*foo\.' stdout grep 'CC .*bar\.' stdout grep 'CC .*baz\.' stdout grep 'CC .*bla\.' stdout |