&parse_WARNINGS.
($help): Use Autom4te::ChannelDefs::usage.
* bin/autoscan.in: Use Autom4te::ChannelDefs.
* lib/Autom4te/General.pm: Don't export error: you don't own it.
+2003-08-21 Akim Demaille <akim@epita.fr>
+
+ * bin/autoheader.in (&parse_args): Use &parse_warnings and
+ &parse_WARNINGS.
+ ($help): Use Autom4te::ChannelDefs::usage.
+ * bin/autoscan.in: Use Autom4te::ChannelDefs.
+ * lib/Autom4te/General.pm: Don't export error: you don't own it.
+
2003-08-21 Akim Demaille <akim@epita.fr>
First stab at preserving warnings between calls to autom4te,
my $config_h_in;
my @prepend_include;
my @include;
-my @warning;
# $HELP
# -----
-$help = <<"END";
+$help = "\
Usage: $0 [OPTION] ... [TEMPLATE-FILE]
Create a template file of C \`\#define\' statements for \`configure\' to
-f, --force consider all files obsolete
-W, --warnings=CATEGORY report the warnings falling in CATEGORY
-Warning categories include:
- \`obsolete\' obsolete constructs
- \`all\' all the warnings
- \`no-CATEGORY\' turn off the warnings on CATEGORY
- \`none\' turn off all the warnings
- \`error\' warnings are error
+" . Autom4te::ChannelDefs::usage () . "
Library directories:
-B, --prepend-include=DIR prepend directory DIR to search path
-I, --include=DIR append directory DIR to search path
Report bugs to <bug-autoconf\@gnu.org>.
-END
+";
# $VERSION
# --------
-$version = <<"END";
+$version = "\
autoheader (@PACKAGE_NAME@) @VERSION@
Written by Roland McGrath and Akim Demaille.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-END
+";
## ---------- ##
{
my $srcdir;
- getopt ('I|include=s' => \@include,
+ parse_WARNINGS;
+ getopt ('I|include=s' => \@include,
'B|prepend-include=s' => \@prepend_include,
- 'W|warnings=s' => \@warning);
+ 'W|warnings=s' => \&parse_warnings);
setup_channel 'note', silent => !$verbose;
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
+use Autom4te::ChannelDefs;
use Autom4te::Configure_ac;
use Autom4te::General;
use Autom4te::XFile;
# Functions we define and export.
my @export_subs =
- qw (&debug &error
+ qw (&debug
&file_name_is_absolute
&getopt &mktmpdir
&uniq &verbose);
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
-.TH AUTOHEADER "1" "August 2003" "autoheader 2.57b" "User Commands"
+.TH AUTOHEADER "1" "August 2003" "autoheader " "User Commands"
.SH NAME
autoheader \- Create a template header for configure
.SH SYNOPSIS
report the warnings falling in CATEGORY
.SS "Warning categories include:"
.TP
+`cross'
+cross compilation issues
+.TP
+`gnu'
+GNU coding standards (default in gnu and gnits modes)
+.TP
`obsolete'
-obsolete constructs
+obsolete features or constructions
+.TP
+`override'
+user redefinitions of Automake rules or variables
+.TP
+`portability'
+portability issues
+.TP
+`syntax'
+dubious syntactic constructs (default)
+.TP
+`unsupported'
+unsupported or incomplete features (default)
.TP
`all'
all the warnings
.TP
`no-CATEGORY'
-turn off the warnings on CATEGORY
+turn off warnings in CATEGORY
.TP
`none'
turn off all the warnings
.TP
`error'
-warnings are error
+treat warnings as errors
.SS "Library directories:"
.TP
\fB\-B\fR, \fB\-\-prepend\-include\fR=\fIDIR\fR
Written by Roland McGrath and Akim Demaille.
.SH "REPORTING BUGS"
Report bugs to <bug-autoconf@gnu.org>.
+.PP
+autoheader (GNU Autoconf) 2.57b
.SH COPYRIGHT
Copyright \(co 2003 Free Software Foundation, Inc.
.br