[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-commit] [SCM] GNU Automake branch, ad-parallel-tests, updated.
From: |
Ralf Wildenhues |
Subject: |
[Automake-commit] [SCM] GNU Automake branch, ad-parallel-tests, updated. Release-1-10-285-g64b35b5 |
Date: |
Sun, 22 Mar 2009 08:43:09 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=64b35b506420a7e9a00af47fe8d0c283759aa4f6
The branch, ad-parallel-tests has been updated
via 64b35b506420a7e9a00af47fe8d0c283759aa4f6 (commit)
from 4c7f26e8cdc0ced0f19e1453b94f101e3b66340d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 64b35b506420a7e9a00af47fe8d0c283759aa4f6
Author: Ralf Wildenhues <address@hidden>
Date: Sun Mar 22 09:39:14 2009 +0100
Minor optimization in parallel-tests text box creation.
* lib/am/check.am [PARALLEL-TESTS] (am__text_box): Use only one
awk invocation, rather than several tools, to create a text box.
Suggestion from Akim Demaille.
Signed-off-by: Ralf Wildenhues <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
lib/am/check.am | 16 +++++++++-------
tests/Makefile.in | 16 +++++++++-------
3 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 659167c..8204083 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-22 Ralf Wildenhues <address@hidden>
+
+ Minor optimization in parallel-tests text box creation.
+ * lib/am/check.am [PARALLEL-TESTS] (am__text_box): Use only one
+ awk invocation, rather than several tools, to create a text box.
+ Suggestion from Akim Demaille.
+
2009-03-11 Ralf Wildenhues <address@hidden>
Fix LAZY_TEST_SUITE handling and $(TEST_SUITE_LOG) recreation.
diff --git a/lib/am/check.am b/lib/am/check.am
index fcb9add..fc9eb69 100644
--- a/lib/am/check.am
+++ b/lib/am/check.am
@@ -75,13 +75,15 @@ am__rst_title = sed 's/.*/ &
/;h;s/./=/g;p;x;p;g;p;s/.*//'
am__rst_section = sed 'p;s/./=/g;p;g'
# Put stdin (possibly several lines separated by ". ") in a box.
-am__text_box = { nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \
- sed "s/\\. /\\$$nl/g"; } | sed '/^$$/d' | \
-$(AWK) '{ if (final) final = final "\n" $$0; else final = $$0; }\
-max < length($$0) { max = length($$0); } \
-END { \
- for (i = 0; i < max; ++i) line = line "="; \
- print line; print final; print line; \
+am__text_box = $(AWK) '{ \
+ n = split($$0, lines, "\\. "); max = 0; \
+ for (i = 1; i <= n; ++i) \
+ if (max < length(lines[i])) \
+ max = length(lines[i]); \
+ for (i = 0; i < max; ++i) line = line "="; \
+ print line; \
+ for (i = 1; i <= n; ++i) if (lines[i]) print lines[i];\
+ print line; \
}'
# Solaris 10 'make', and several other traditional 'make' implementations,
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 6a293a8..213cab2 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -92,13 +92,15 @@ am__base_list = \
am__rst_title = sed 's/.*/ & /;h;s/./=/g;p;x;p;g;p;s/.*//'
am__rst_section = sed 'p;s/./=/g;p;g'
# Put stdin (possibly several lines separated by ". ") in a box.
-am__text_box = { nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \
- sed "s/\\. /\\$$nl/g"; } | sed '/^$$/d' | \
-$(AWK) '{ if (final) final = final "\n" $$0; else final = $$0; }\
-max < length($$0) { max = length($$0); } \
-END { \
- for (i = 0; i < max; ++i) line = line "="; \
- print line; print final; print line; \
+am__text_box = $(AWK) '{ \
+ n = split($$0, lines, "\\. "); max = 0; \
+ for (i = 1; i <= n; ++i) \
+ if (max < length(lines[i])) \
+ max = length(lines[i]); \
+ for (i = 0; i < max; ++i) line = line "="; \
+ print line; \
+ for (i = 1; i <= n; ++i) if (lines[i]) print lines[i];\
+ print line; \
}'
# Solaris 10 'make', and several other traditional 'make' implementations,
# pass "-e" to $(SHELL). This contradicts POSIX. Work around the problem
hooks/post-receive
--
GNU Automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-commit] [SCM] GNU Automake branch, ad-parallel-tests, updated. Release-1-10-285-g64b35b5,
Ralf Wildenhues <=