diff options
author | Frédéric Boisnard <fredericx.boisnard@intel.com> | 2014-01-13 19:57:50 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:18 +0100 |
commit | 28119d8ec7d49b5fab310f08e6fc40c910e3bc8a (patch) | |
tree | 7247588caed748aae12dc287d8cc0b9c4f3c11dc /tools | |
parent | 69bf1bfc21517fd000202522d076ba6c1c90a579 (diff) | |
download | external_parameter-framework-28119d8ec7d49b5fab310f08e6fc40c910e3bc8a.zip external_parameter-framework-28119d8ec7d49b5fab310f08e6fc40c910e3bc8a.tar.gz external_parameter-framework-28119d8ec7d49b5fab310f08e6fc40c910e3bc8a.tar.bz2 |
Make hostDomainGenerator.sh verbose by default
BZ: 151780
The option --verbose must be provided in order to make hostDomainGenerator.sh
verbose. However, this option is very usefull when the generation fails during
a build, and it would be nice to have it enabled by default.
Make this option the default one, and add a nonverbose option instead.
Change-Id: I59195b7a28e25a5f18871d6baf2ae4f1310f49d7
Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/xmlGenerator/hostDomainGenerator.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/xmlGenerator/hostDomainGenerator.sh b/tools/xmlGenerator/hostDomainGenerator.sh index 9bf8606..65b8189 100755 --- a/tools/xmlGenerator/hostDomainGenerator.sh +++ b/tools/xmlGenerator/hostDomainGenerator.sh @@ -32,13 +32,13 @@ set -ueo pipefail # Leave standard output unmodified exec 4>&1 -# If the verbose long option is provided, output info log lines prefixed on stderr. -if test "$1" == --verbose +# If the nonverbose long option is provided, do not output info log lines prefixed on stderr. +if test "$1" == --nonverbose then shift - exec 1> >(sed 's/^/Info: /' >&2) -else exec 1>/dev/null +else + exec 1> >(sed 's/^/Info: /' >&2) fi # Prefix all warning and error log lines and redirect them to stderr exec 5> >(sed 's/^/Warning: /' >&2) |