* bin/autom4te.in: --normalize is a new option.

* bin/autoconf.in: Use it.
This commit is contained in:
Akim Demaille 2001-08-17 12:06:56 +00:00
parent 40556ab827
commit 80001aa3dc
4 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-08-17 Akim Demaille <akim@epita.fr>
* bin/autom4te.in: --normalize is a new option.
* bin/autoconf.in: Use it.
2001-08-17 Akim Demaille <akim@epita.fr>
* bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am

View File

@ -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"\

View File

@ -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;

View File

@ -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