* lib/Autom4te/General.pm (getopt): Add --silent to standard options. Silence note messages when --silent was given. * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in ($help): Add --silent.
Signed-off-by: Bert Wesarg <bert.wes...@googlemail.com> --- bin/autoheader.in | 1 + bin/autom4te.in | 1 + bin/autoreconf.in | 1 + bin/autoscan.in | 1 + lib/Autom4te/General.pm | 4 +++- 5 files changed, 7 insertions(+), 1 deletions(-) diff --git a/bin/autoheader.in b/bin/autoheader.in index 7086a9b..272222f 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -67,6 +67,7 @@ or else \`configure.in\'. -h, --help print this help, then exit -V, --version print version number, then exit + --silent silence report processing -v, --verbose verbosely report processing -d, --debug don\'t remove temporary files -f, --force consider all files obsolete diff --git a/bin/autom4te.in b/bin/autom4te.in index 4ad9570..fafc7c0 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -151,6 +151,7 @@ the actual file name. Operation modes: -h, --help print this help, then exit -V, --version print version number, then exit + --silent silence report processing -v, --verbose verbosely report processing -d, --debug don\'t remove temporary files -o, --output=FILE save output in FILE (defaults to \`-\', stdout) diff --git a/bin/autoreconf.in b/bin/autoreconf.in index 03f9ecd..006b1b9 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -67,6 +67,7 @@ you can make `autoreconf' remake all of the files by giving it the Operation modes: -h, --help print this help, then exit -V, --version print version number, then exit + --silent silence report processing -v, --verbose verbosely report processing -d, --debug don't remove temporary files -f, --force consider all files obsolete diff --git a/bin/autoscan.in b/bin/autoscan.in index fcd189c..bf31290 100644 --- a/bin/autoscan.in +++ b/bin/autoscan.in @@ -108,6 +108,7 @@ preliminary `configure.ac' for that package. -h, --help print this help, then exit -V, --version print version number, then exit + --silent silence report processing -v, --verbose verbosely report processing -d, --debug don't remove temporary files diff --git a/lib/Autom4te/General.pm b/lib/Autom4te/General.pm index 3a00618..4df3ba0 100644 --- a/lib/Autom4te/General.pm +++ b/lib/Autom4te/General.pm @@ -257,6 +257,7 @@ sub getopt (%) %option = ("h|help" => sub { print $help; exit 0 }, "V|version" => sub { print $version; exit 0 }, + "silent" => sub { --$verbose }, "v|verbose" => sub { ++$verbose }, "d|debug" => sub { ++$debug }, 'f|force' => \$force, @@ -277,7 +278,8 @@ sub getopt (%) push @ARGV, '-' if $stdin; - setup_channel 'verb', silent => !$verbose; + setup_channel 'note', silent => 1 if $verbose < 0; + setup_channel 'verb', silent => 1 if $verbose <= 0; } -- 1.7.7.931.gdbe98