my $datadir = $ENV{'AC_MACRODIR'} || '@datadir@';
my $autom4te_cfg = $ENV{'AUTOM4TE_CFG'} || "$datadir/autom4te.cfg";
-# $SET{$SET} is the list of automatic options for $SET.
-my %set;
-my $set;
+# $LANGUAGE{$LANGUAGE} is the list of automatic options for $LANGUAGE.
+my %language;
+my $language;
my $output = '-';
--normalize smash successive empty lines
-f, --force don\'t rely on cached values
-W, --warnings=CATEGORY report the warnings falling in CATEGORY
- -s, --set=SET specify the set of M4 macros to use
+ -s, --language=LANG specify the set of M4 macros to use
-m, --mode=OCTAL change the non trace output file mode (0666)
-M, --melt don\'t use M4 frozen files
-Sets include:
+Languages include:
\`Autoconf\' create Autoconf configure scripts
\`Autotest\' create Autotest test suites
\`M4sh\' create M4sh shell scripts
my $cfg = new IO::File ($autom4te_cfg)
or die "$me: cannot read $autom4te_cfg: $!\n";
- my $set;
+ my $lang;
while ($_ = $cfg->getline)
{
chomp;
my @words = shellwords ($_);
my $type = shift @words;
- if ($type eq 'begin-set:')
+ if ($type eq 'begin-language:')
{
- $set = lc $words[0];
+ $lang = lc $words[0];
}
- elsif ($type eq 'end-set:')
+ elsif ($type eq 'end-language:')
{
- die "$me: $autom4te_cfg:$.: end-set mismatch: $set\n"
- if $set ne lc $words[0];
+ die "$me: $autom4te_cfg:$.: end-language mismatch: $lang\n"
+ if $lang ne lc $words[0];
}
elsif ($type eq 'args:')
{
- push @{$set{$set}}, @words;
+ push @{$language{$lang}}, @words;
}
else
{
"h|help" => \&print_usage,
"V|version" => \&print_version,
- "s|set=s" => \$set,
- "v|verbose" => \$verbose,
- "d|debug" => \$debug,
+ "s|language=s" => \$language,
+ "v|verbose" => \$verbose,
+ "d|debug" => \$debug,
)
or exit 1;
Getopt::Long::Configure ("defaults");
- unshift @ARGV, @{$set{$set}}
- if $set;
+ unshift @ARGV, @{$language{$language}}
+ if $language;
verbose "arguments: @ARGV\n"
if $debug;
## Autoconf. ##
## ---------- ##
-begin-set: "Autoconf"
+begin-language: "Autoconf"
# patterns: "*.ac"
# patterns: "configure.in"
args: --include @datadir@
args: --preselect AC_TYPE_SIGNAL
args: --preselect AC_TYPE_SIZE_T
args: --preselect AC_TYPE_UID_T
-end-set: "Autoconf"
+end-language: "Autoconf"
## -------- ##
## Autotest ##
## -------- ##
-begin-set: "Autotest"
+begin-language: "Autotest"
# patterns: *.at
args: --include @datadir@
args: autotest/autotest.m4
args: --mode 777
args: --warning syntax
-end-set: "Autotest"
+end-language: "Autotest"
## ---- ##
## M4sh ##
## ---- ##
-begin-set: "M4sh"
+begin-language: "M4sh"
# patterns: *.as
args: --include @datadir@
args: m4sugar/m4sh.m4
args: --mode 777
args: --warning syntax
-end-set: "M4sh"
+end-language: "M4sh"
## ------- ##
## M4sugar ##
## ------- ##
-begin-set: "M4sugar"
+begin-language: "M4sugar"
# patterns: *.msh
args: --include @datadir@
args: m4sugar/m4sugar.m4
args: --warning syntax
-end-set: "M4sugar"
+end-language: "M4sugar"
\fB\-W\fR, \fB\-\-warnings\fR=\fICATEGORY\fR
report the warnings falling in CATEGORY
.TP
-\fB\-s\fR, \fB\-\-set\fR=\fISET\fR
+\fB\-s\fR, \fB\-\-language\fR=\fILANG\fR
specify the set of M4 macros to use
.TP
\fB\-m\fR, \fB\-\-mode\fR=\fIOCTAL\fR
.TP
\fB\-M\fR, \fB\-\-melt\fR
don't use M4 frozen files
-.SS "Sets include:"
+.SS "Languages include:"
.TP
`Autoconf'
create Autoconf configure scripts