automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [FYI] [ng] tests: simplify munging of header-vars.am ...


From: Stefano Lattarini
Subject: [Automake-NG] [FYI] [ng] tests: simplify munging of header-vars.am ...
Date: Fri, 27 Jul 2012 19:27:18 +0200

* t/am-xargs-map.sh, t/ensure-dir-exists.sh, t/internals.tap,
t/memoize.tap: ... here, since that files no more contains
'@foo@' substitutions nor '?COND?' transforms.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 t/am-xargs-map.sh      | 8 ++------
 t/ensure-dir-exists.sh | 8 ++------
 t/internals.tap        | 8 ++------
 t/memoize.tap          | 8 ++------
 4 files changed, 8 insertions(+), 24 deletions(-)

diff --git a/t/am-xargs-map.sh b/t/am-xargs-map.sh
index da3621d..3d5db39 100755
--- a/t/am-xargs-map.sh
+++ b/t/am-xargs-map.sh
@@ -20,14 +20,10 @@
 am_create_testdir=empty
 . ./defs || exit 1
 
-cp "$am_amdir"/header-vars.am . \
+# Filter out Automake comments.
+grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \
   || fatal_ "fetching makefile fragment headers-vars.am"
 
-# Filter out Automake comments and things that would need configure
-# substitutions.
-LC_ALL=C $EGREP -v '(^##|address@hidden@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 sed 's/^[0-9][0-9]*:://' > Makefile << 'END'
 01::include ./defn.mk
 02::
diff --git a/t/ensure-dir-exists.sh b/t/ensure-dir-exists.sh
index bc396b6..5911c0b 100755
--- a/t/ensure-dir-exists.sh
+++ b/t/ensure-dir-exists.sh
@@ -19,14 +19,10 @@
 am_create_testdir=empty
 . ./defs || exit 1
 
-cp "$am_amdir"/header-vars.am . \
+# Filter out Automake comments.
+grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \
   || fatal_ "fetching makefile fragment headers-vars.am"
 
-# Filter out Automake comments and things that would need configure
-# substitutions.
-LC_ALL=C $EGREP -v '(^##|address@hidden@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 cat > Makefile << 'END'
 include ./defn.mk
 
diff --git a/t/internals.tap b/t/internals.tap
index 90126a7..6be1cf3 100755
--- a/t/internals.tap
+++ b/t/internals.tap
@@ -21,14 +21,10 @@ am_create_testdir=empty
 
 plan_ 10
 
-cp "$am_amdir"/header-vars.am . \
+# Filter out Automake comments.
+grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \
   || fatal_ "fetching makefile fragment headers-vars.am"
 
-# Filter out Automake comments and things that would need configure
-# substitutions.
-LC_ALL=C $EGREP -v '(^##|address@hidden@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 # WARNING: there are a lot of embedded tabs in this makefile.
 # DO NOT "NORMALIZE" THEM TO SPACES!
 cat > Makefile << 'END'
diff --git a/t/memoize.tap b/t/memoize.tap
index 5e3646b..d829918 100755
--- a/t/memoize.tap
+++ b/t/memoize.tap
@@ -23,14 +23,10 @@ plan_ 17
 
 ocwd=$(pwd) || fatal_ "couldn't get current working directory"
 
-cp "$am_amdir"/header-vars.am . \
+# Filter out Automake comments.
+grep -v '^##' "$am_amdir"/header-vars.am > defn.mk \
   || fatal_ "fetching makefile fragment headers-vars.am"
 
-# Filter out Automake comments and things that would need configure
-# substitutions.
-LC_ALL=C $EGREP -v '(^##|address@hidden@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 T ()
 {
   tcount=$(($tcount + 1))
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]