]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoheader.sh: Don't pass a string to 'echo' that might
authorAkim Demaille <akim@epita.fr>
Tue, 30 Jan 2001 10:42:36 +0000 (10:42 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 30 Jan 2001 10:42:36 +0000 (10:42 +0000)
possibly contain backslashes.

ChangeLog
autoheader.in
autoheader.sh
bin/autoheader.in

index 5875edb8761f1cff000c2de45559c20a34cfb17b..5c4f6b058e162a29df0db77ae69f0d27adf940f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 6b2b5d3dc6044cc804ad27991163fe0c518c7e69..bac5d6f26a7e10440883d79ec4407b1aa80222c6 100644 (file)
@@ -310,8 +310,11 @@ test -r $localdir/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.
index 6b2b5d3dc6044cc804ad27991163fe0c518c7e69..bac5d6f26a7e10440883d79ec4407b1aa80222c6 100644 (file)
@@ -310,8 +310,11 @@ test -r $localdir/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.
index 6b2b5d3dc6044cc804ad27991163fe0c518c7e69..bac5d6f26a7e10440883d79ec4407b1aa80222c6 100644 (file)
@@ -310,8 +310,11 @@ test -r $localdir/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.