2001-01-29 Akim Demaille <akim@epita.fr>
+ * automake.in (handle_tags): Use &transform.
+ (am_error, am_line_error, am_conf_error, read_am_file): Use
+ directly arrays in strings, no need for &join.
+ Require Perl 5.
+ * Makefile.am (maintainer-check): Use grep -w when looking for
+ words.
+
+2001-01-29 Akim Demaille <akim@epita.fr>
+
* automake.in (prog_error): New.
Spread its use.
* automake.in (define_standard_variables): Use &transform instead
of build_rx.
-
2001-01-29 Akim Demaille <akim@epita.fr>
* automake.in (handle_texinfo): Use the new $texinfodir instead of
the removed $texinfo_tex.
-
2001-01-29 Akim Demaille <akim@epita.fr>
* automake.in (handle_libraries, handle_ltlibraries): Use
&transform.
-
2001-01-29 Akim Demaille <akim@epita.fr>
* automake.in (handle_programs) <xexe>: Remove, replaced by
`exeext'.
Use it, and &transform.
-
2001-01-29 Akim Demaille <akim@epita.fr>
* automake.in (get_object_extension) <$default_includes>: New.
# Originally written by David Mackenzie <djm@gnu.ai.mit.edu>.
# Perl reimplementation by Tom Tromey <tromey@cygnus.com>.
+require 5;
# Parameters set by configure. Not to be changed. NOTE: assign
# VERSION as string so that eg version 0.30 will print correctly.
|| &variable_defined ('ETAGS_ARGS')
|| @tag_deps)
{
- local ($xform) = '';
+ local ($config) = '';
local ($one_hdr);
foreach $one_hdr (@config_headers)
{
if ($relative_dir eq &dirname ($one_hdr))
{
# The config header is in this directory. So require it.
- local ($var);
- ($var = &basename ($one_hdr)) =~ s/(\W)/\\$1/g;
- $xform .= ' ' if $xform;
- $xform .= $var;
+ $config .= ' ' if $config;
+ $config .= &basename ($one_hdr);
}
}
- $xform = ('s/\@CONFIG\@/' . $xform . '/;'
- . 's/\@DIRS\@/' . join (' ', @tag_deps) . '/;');
+ local $xform = &transform ('CONFIG' => $xform,
+ 'DIRS' => join (' ', @tag_deps));
if (&variable_defined ('SUBDIRS'))
{
{
if (@conditional_stack)
{
- &am_error ("unterminated conditionals: " . join (' ', @conditional_stack));
+ &am_error ("unterminated conditionals: @conditional_stack");
}
else
{
# Print an error message and set exit status.
sub am_error
{
- warn "automake: ${am_file}.am: ", join (' ', @_), "\n";
+ warn "automake: ${am_file}.am: @_\n";
$exit_status = 1;
}
{
# Couldn't find the line number.
}
- warn $file, ": ", join (' ', @args), "\n";
+ warn $file, ": @args\n";
$exit_status = 1;
}
else
sub am_conf_error
{
# FIXME: can run in subdirs.
- warn "automake: $configure_ac: ", join (' ', @_), "\n";
+ warn "automake: $configure_ac: @_\n";
$exit_status = 1;
}
if ($line)
{
- warn "$file: $line: ", join (' ', @args), "\n";
+ warn "$file: $line: @args\n";
$exit_status = 1;
}
else