]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Reduce startup cost of autotest.
authorEric Blake <eblake@redhat.com>
Fri, 2 Jul 2010 20:03:50 +0000 (14:03 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 2 Jul 2010 20:03:50 +0000 (14:03 -0600)
* lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
doing a recursive find, limit ourselves to top ChangeLog only.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/autotest/general.m4

index 82df57cea792e2fb837b838e87da4b3bff0d3223..4c31e0edd7fd62523ad8e5ab4bdeac0c725310a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-02  Eric Blake  <eblake@redhat.com>
+
+       Reduce startup cost of autotest.
+       * lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
+       doing a recursive find, limit ourselves to top ChangeLog only.
+       Reported by Ralf Wildenhues.
+
 2010-07-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.
index 57b3fef62bb147fc9ac4c9129210873d162d9245..2b46705ff73e52c71611d83240393e984a747462 100644 (file)
@@ -978,23 +978,13 @@ AS_BOX(m4_defn([AT_TESTSUITE_NAME])[.])
   AS_ECHO(["  \$ $[0] $at_cli_args"])
   echo
 
-  # Try to find a few ChangeLogs in case it might help determining the
-  # exact version.  Use the relative dir: if the top dir is a symlink,
-  # find will not follow it (and options to follow the links are not
-  # portable), which would result in no output here.  Prune directories
-  # matching the package tarname, since they tend to be leftovers from
-  # `make dist' or `make distcheck' and contain redundant or stale logs.
-  if test -n "$at_top_srcdir"; then
-    AS_BOX([ChangeLogs.])
+  # If ChangeLog exists, list a few lines in case it might help determining
+  # the exact version.
+  if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
+    AS_BOX([ChangeLog.])
+    echo
+    sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
     echo
-    for at_file in `find "$at_top_srcdir" m4_ifdef([AT_PACKAGE_TARNAME],
-[-name "AT_PACKAGE_TARNAME-*" -prune -o ])-name ChangeLog -print`
-    do
-      AS_ECHO(["$as_me: $at_file:"])
-      sed 's/^/| /;10q' $at_file
-      echo
-    done
-
   fi
 
   AS_UNAME