]> git.ipfire.org Git - thirdparty/libvirt.git/commit
maint: avoid spurious output if program not present
authorEric Blake <eblake@redhat.com>
Mon, 10 May 2010 20:17:10 +0000 (14:17 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 May 2010 20:56:37 +0000 (14:56 -0600)
commit7cdf26637efea7e964abcd045547cb43ac95492c
tree53ed03ef393e2a64bea790ec0f0ecdcd89bda757
parent23958aedf43500a8b9aac06e0fd720884d1343c1
maint: avoid spurious output if program not present

Some shells warn about missing programs before redirection;
the idiomatic way to silence them is to run the program check
inside a subshell, with the redirections outside the subshell.
But a subshell is only needed in places where it is reasonable
to expect the use of such a noisy shell in the first place.

* src/Makefile.am (remote_protocol-structs): Use subshell, for
FreeBSD 8.0 /bin/sh.
* cfg.mk (sc_preprocessor_indentation): Avoid subshell, since the
only users running cfg.mk can be assumed to have decent tools.
cfg.mk
src/Makefile.am