From: Akim Demaille Date: Fri, 17 Aug 2001 12:06:56 +0000 (+0000) Subject: * bin/autom4te.in: --normalize is a new option. X-Git-Tag: AUTOCONF-2.52d~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80001aa3dc6591256260d2de89f5a68eb2f605b2;p=thirdparty%2Fautoconf.git * bin/autom4te.in: --normalize is a new option. * bin/autoconf.in: Use it. --- diff --git a/ChangeLog b/ChangeLog index dc5690194..34ec3b05a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-17 Akim Demaille + + * bin/autom4te.in: --normalize is a new option. + * bin/autoconf.in: Use it. + 2001-08-17 Akim Demaille * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am diff --git a/bin/autoconf.in b/bin/autoconf.in index b0709cb13..491696633 100644 --- a/bin/autoconf.in +++ b/bin/autoconf.in @@ -236,6 +236,7 @@ run_autom4te="$autom4te "\ `$verbose "--verbose "`\ `$debug && echo "--debug "`\ `$force && echo "--force "`\ +"--normalize "\ "--include $autoconf_dir --include $localdir "\ "--warning syntax,$warnings "\ "$preselect"\ diff --git a/bin/autom4te.in b/bin/autom4te.in index f40b7af1b..f87a73913 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -255,6 +255,9 @@ my @preselect = ('include', 'm4_pattern_allow', 'm4_pattern_forbid'); my $output = '-'; +# Should we normalize the output? +my $normalize = 0; + # Autom4te's default warnings, and the actual list of warnings. my @my_warning = ('syntax'); my @warning; @@ -388,6 +391,7 @@ Operation modes: -v, --verbose verbosely report processing -d, --debug don\'t remove temporary files -o, --output=FILE save output in FILE (defaults to \`-\', stdout) + --normalize smash successive empty lines -f, --force don\'t rely on cached values -W, --warnings=CATEGORY report the warnings falling in CATEGORY @@ -579,7 +583,7 @@ sub handle_output ($$) while ($_ = $in->getline) { s/\s+$//; - if (/^$/) + if ($normalize && /^$/) { $separate = 1; next; diff --git a/man/autom4te.1 b/man/autom4te.1 index 75ae19866..e9be5e892 100644 --- a/man/autom4te.1 +++ b/man/autom4te.1 @@ -26,6 +26,9 @@ don't remove temporary files \fB\-o\fR, \fB\-\-output\fR=\fIFILE\fR save output in FILE (defaults to `-', stdout) .TP +\fB\-\-normalize\fR +smash successive empty lines +.TP \fB\-f\fR, \fB\-\-force\fR don't rely on cached values .TP