From a037f56c4090421040ba75ea51e9e61812b6ad45 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 2 Jul 2010 14:03:50 -0600 Subject: [PATCH] Reduce startup cost of autotest. * lib/autotest/general.m4 (_AT_FINISH) : Rather than doing a recursive find, limit ourselves to top ChangeLog only. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake --- ChangeLog | 7 +++++++ lib/autotest/general.m4 | 22 ++++++---------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82df57ce..4c31e0ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-07-02 Eric Blake + + Reduce startup cost of autotest. + * lib/autotest/general.m4 (_AT_FINISH) : Rather than + doing a recursive find, limit ourselves to top ChangeLog only. + Reported by Ralf Wildenhues. + 2010-07-02 Ralf Wildenhues New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage. diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 57b3fef6..2b46705f 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -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 -- 2.47.2