possibly contain backslashes.
+2001-01-30 Paul Eggert <eggert@twinsun.com>
+
+ * autoheader.sh: Don't pass a string to 'echo' that might
+ possibly contain backslashes.
+
2001-01-29 Pavel Roskin <proski@gnu.org>
Don't use filenames that can be reduced to "conftest" on DOS.
# Dump the templates from `configure.ac'.
for verb in `(set) 2>&1 | sed -n -e '/^ac_verbatim/s/^\([^=]*\)=.*$/\1/p' | sort`; do
- echo >>$tmp/config.hin
- eval echo '"${'$verb'}"' >>$tmp/config.hin
+ eval value=\$$verb
+ cat >>$tmp/config.hin <<EOF
+
+$value
+EOF
done
# Handle the case where @BOTTOM@ is the first line of acconfig.h.
# Dump the templates from `configure.ac'.
for verb in `(set) 2>&1 | sed -n -e '/^ac_verbatim/s/^\([^=]*\)=.*$/\1/p' | sort`; do
- echo >>$tmp/config.hin
- eval echo '"${'$verb'}"' >>$tmp/config.hin
+ eval value=\$$verb
+ cat >>$tmp/config.hin <<EOF
+
+$value
+EOF
done
# Handle the case where @BOTTOM@ is the first line of acconfig.h.
# Dump the templates from `configure.ac'.
for verb in `(set) 2>&1 | sed -n -e '/^ac_verbatim/s/^\([^=]*\)=.*$/\1/p' | sort`; do
- echo >>$tmp/config.hin
- eval echo '"${'$verb'}"' >>$tmp/config.hin
+ eval value=\$$verb
+ cat >>$tmp/config.hin <<EOF
+
+$value
+EOF
done
# Handle the case where @BOTTOM@ is the first line of acconfig.h.