extracting the line numbers of the last needed test.
+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>:
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 '
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"