]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autotest/general.m4 (AT_INIT): Exit awk script after
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 22 Nov 2007 07:09:03 +0000 (08:09 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 22 Nov 2007 07:09:03 +0000 (08:09 +0100)
extracting the line numbers of the last needed test.

ChangeLog
lib/autotest/general.m4

index a689b1516da2a5f0a2a1f12cf3ba1f0131d2c141..2ea66502f471d3067b4af48570b022019ac8a6f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-22  Stepan Kasal  <kasal@ucw.cz>
+       and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/autotest/general.m4 (AT_INIT): Exit awk script after
+       extracting the line numbers of the last needed test.
+
 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
index 8b6a34afebea586007e037d4613b3772b2b5ace9..b40db8d12c5ffb77524d4292bee4dc07ee182264 100644 (file)
@@ -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="\a" }
   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"