You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2005/09/29 01:30:45 UTC

svn commit: r292347 - /incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg

Author: sebor
Date: Wed Sep 28 16:30:42 2005
New Revision: 292347

URL: http://svn.apache.org/viewcvs?rev=292347&view=rev
Log:
2005-09-28  Martin Sebor  <se...@roguewave.com>

	* GNUmakefile.cfg: Used printf instead of echo to append test output
	to the config header in case the output contains embedded escape
	sequences such as "\n" etc.


Modified:
    incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg

Modified: incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg?rev=292347&r1=292346&r2=292347&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg (original)
+++ incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg Wed Sep 28 16:30:42 2005
@@ -176,7 +176,9 @@
               grep "$$symbol$$" config.h ;                               \
               if [ $$? -ne 0 ] ; then                                    \
                   echo "$$symbol" >>$$output;                            \
-                  [ "$$text" != "" ] && echo "$$text" >>$$output;        \
+                  if [ "$$text" != "" ]; then                            \
+                      printf "%s\n" "$$text" >>$$output;                 \
+                  fi;                                                    \
               fi;                                                        \
           done;                                                          \
           exit 0)