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::
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
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'
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))