]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] tests: simplify munging of header-vars.am ...
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jul 2012 17:26:11 +0000 (19:26 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jul 2012 17:26:44 +0000 (19:26 +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 <stefano.lattarini@gmail.com>
t/am-xargs-map.sh
t/ensure-dir-exists.sh
t/internals.tap
t/memoize.tap

index da3621d7dde6527761f5d3495e2f0ff262ae4259..3d5db397efedf59b06ca5677d8112a09affbaee5 100755 (executable)
 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 '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 sed 's/^[0-9][0-9]*:://' > Makefile << 'END'
 01::include ./defn.mk
 02::
index bc396b6d7c1f3ad8d4c1bd73763780d3f0fccc76..5911c0bc62e69a3ef0ac4ee4678f84a32048a3a9 100755 (executable)
 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 '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 cat > Makefile << 'END'
 include ./defn.mk
 
index 90126a76b4a626dba84a7b257bf800f928d64489..6be1cf3d6c90018ed827016a8a94186710012df6 100755 (executable)
@@ -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 '(^##|=.*@[a-zA-Z0-9_]+@)' 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'
index 5e3646bd11592c64ac7beeefff91d96e7a774205..d829918b006276fd5cc87d4a5d68199e2e840ff4 100755 (executable)
@@ -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 '(^##|=.*@[a-zA-Z0-9_]+@)' header-vars.am > defn.mk
-rm -f header-vars.am
-
 T ()
 {
   tcount=$(($tcount + 1))