This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] fixinclude: shell-quote testing file


Hi,

one of the main VMS include files has a dollar in its name (decc$types.h), which is not shell friendly.

As a consequence, when the name is reused by check.tpl to create a baseline file, it must be quoted.
This is what is implemented in this patch.

Tested by 'make check' in fixincludes/

Ok for trunk ?

Tristan.

fixincludes/
2011-05-16  Tristan Gingold  <gingold@adacore.com>

	* check.tpl: Shell-quote testing file.

diff --git a/fixincludes/check.tpl b/fixincludes/check.tpl
index b239d8b..0f3937a 100644
--- a/fixincludes/check.tpl
+++ b/fixincludes/check.tpl
@@ -87,7 +87,7 @@ FOR fix  =][=
   ELSE   =]
 cat >> [=
     IF (exist? "files") =][=
-      files[0] =][=
+      (string-substitute (get "files[0]") "$" "\\$") =][=
     ELSE =]testing.h[=
     ENDIF =] <<_HACK_EOF_
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]