]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_tags): Use &transform.
authorAkim Demaille <akim@epita.fr>
Mon, 29 Jan 2001 09:27:18 +0000 (09:27 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 29 Jan 2001 09:27:18 +0000 (09:27 +0000)
(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.

ChangeLog
Makefile.am
Makefile.in
automake.in
lib/am/Makefile.am

index b7131b7ca312508d402164f67679f26a72579b58..fe160d09ab4e203c33375f2a397d75950fdc3a58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
        * 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.
index f3d2544b5c0d9d4ac39e8030c8d55da5c9aecc61..15e84672051804c9dd29c12c3dc48aa12410bb0c 100644 (file)
@@ -96,7 +96,7 @@ maintainer-check: automake aclocal
          perl4.036 -c -w aclocal; \
        else :; fi
 ## We never want to use "undef", only "delete".
-       @if grep undef $(srcdir)/automake.in > /dev/null 2>&1; then \
+       @if grep -w undef $(srcdir)/automake.in > /dev/null 2>&1; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
        fi
index a4cf295d9c5902ec13746ca6cc646b3de30ba585..9b110d308622a632a7f0b61513d5fef6545f9316 100644 (file)
@@ -664,7 +664,7 @@ maintainer-check: automake aclocal
          perl4.036 -c -w automake; \
          perl4.036 -c -w aclocal; \
        else :; fi
-       @if grep undef $(srcdir)/automake.in > /dev/null 2>&1; then \
+       @if grep -w undef $(srcdir)/automake.in > /dev/null 2>&1; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
        fi
index b3c66260aa70415d9406e91255575523b5d94703..df041cac09c4f67622aee36a71124a8d8e37176b 100755 (executable)
@@ -27,6 +27,7 @@ eval 'exec @PERL@ -S $0 ${1+"$@"}'
 # 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.
@@ -2569,21 +2570,19 @@ sub handle_tags
        || &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'))
        {
@@ -6523,7 +6522,7 @@ sub read_am_file
     {
        if (@conditional_stack)
        {
-           &am_error ("unterminated conditionals: " . join (' ', @conditional_stack));
+           &am_error ("unterminated conditionals: @conditional_stack");
        }
        else
        {
@@ -7831,7 +7830,7 @@ sub my_glob
 # 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;
 }
 
@@ -7864,7 +7863,7 @@ sub am_line_error
        {
            # Couldn't find the line number.
        }
-       warn $file, ": ", join (' ', @args), "\n";
+       warn $file, ": @args\n";
        $exit_status = 1;
     }
     else
@@ -7877,7 +7876,7 @@ sub am_line_error
 sub am_conf_error
 {
     # FIXME: can run in subdirs.
-    warn "automake: $configure_ac: ", join (' ', @_), "\n";
+    warn "automake: $configure_ac: @_\n";
     $exit_status = 1;
 }
 
@@ -7888,7 +7887,7 @@ sub am_conf_line_error
 
     if ($line)
     {
-       warn "$file: $line: ", join (' ', @args), "\n";
+       warn "$file: $line: @args\n";
        $exit_status = 1;
     }
     else
index f3d2544b5c0d9d4ac39e8030c8d55da5c9aecc61..15e84672051804c9dd29c12c3dc48aa12410bb0c 100644 (file)
@@ -96,7 +96,7 @@ maintainer-check: automake aclocal
          perl4.036 -c -w aclocal; \
        else :; fi
 ## We never want to use "undef", only "delete".
-       @if grep undef $(srcdir)/automake.in > /dev/null 2>&1; then \
+       @if grep -w undef $(srcdir)/automake.in > /dev/null 2>&1; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
        fi
This page took 0.04379 seconds and 5 git commands to generate.