From 28119d8ec7d49b5fab310f08e6fc40c910e3bc8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Boisnard?= Date: Mon, 13 Jan 2014 19:57:50 +0100 Subject: Make hostDomainGenerator.sh verbose by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tools/xmlGenerator/hostDomainGenerator.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') 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) -- cgit v1.1