From: Ralf Wildenhues Date: Thu, 22 Nov 2007 07:09:03 +0000 (+0100) Subject: * lib/autotest/general.m4 (AT_INIT): Exit awk script after X-Git-Tag: v2.62~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=844f7708855438ea616629db96544f7523c5f400;p=thirdparty%2Fautoconf.git * lib/autotest/general.m4 (AT_INIT): Exit awk script after extracting the line numbers of the last needed test. --- diff --git a/ChangeLog b/ChangeLog index a689b151..2ea66502 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-22 Stepan Kasal + and Ralf Wildenhues + + * lib/autotest/general.m4 (AT_INIT): Exit awk script after + extracting the line numbers of the last needed test. + 2007-11-20 Ralf Wildenhues * lib/autotest/general.m4 (AT_INIT) : diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 8b6a34af..b40db8d1 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -872,6 +872,9 @@ else at_diff=diff fi +# Get the last needed group. +for at_group in $at_groups; do :; done + # Extract the start and end lines of each test group at the tail # of this file awk ' @@ -880,7 +883,9 @@ BEGIN { FS="" } start = NR } /^@%:@AT_STOP_/ { - print "at_sed" substr ($ 0, 10) "=\"1," start "d;" NR "q\"" + test = substr ($ 0, 10) + print "at_sed" test "=\"1," start "d;" NR "q\"" + if (test == '$at_group') exit }' "$at_myself" > "$at_test_source" . "$at_test_source"