mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-23 14:09:51 +08:00
* bin/autom4te.in: --normalize is a new option.
* bin/autoconf.in: Use it.
This commit is contained in:
parent
40556ab827
commit
80001aa3dc
@ -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
|
||||
|
@ -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"\
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user