[commit] r2166 - Always generate local interp.c with CR translated to LF. Gnuify from local interp.c.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2166 - Always generate local interp.c with CR translated to LF. Gnuify from local interp.c.

commits-3
 
Author: piumarta
Date: 2010-04-01 19:58:16 -0700 (Thu, 01 Apr 2010)
New Revision: 2166

Modified:
   trunk/platforms/unix/vm/build.cmake
Log:
Always generate local interp.c with CR translated to LF.  Gnuify from local interp.c.

Modified: trunk/platforms/unix/vm/build.cmake
===================================================================
--- trunk/platforms/unix/vm/build.cmake 2010-04-02 02:57:25 UTC (rev 2165)
+++ trunk/platforms/unix/vm/build.cmake 2010-04-02 02:58:16 UTC (rev 2166)
@@ -23,13 +23,13 @@
 ADD_CUSTOM_COMMAND (
   DEPENDS ${src}/vm/interp.c
   OUTPUT  ${bld}/interp.c
-  COMMAND ${CMAKE_COMMAND} -E copy ${src}/vm/interp.c ${bld}/interp.c}
+  COMMAND tr '\\015' '\\012' < ${src}/vm/interp.c > ${bld}/interp.c
 )
 
 ADD_CUSTOM_COMMAND (
-  DEPENDS ${src}/vm/interp.c
+  DEPENDS ${bld}/interp.c
   OUTPUT  ${bld}/gnu-interp.c
-  COMMAND ${config}/gnuify ${config}/gnuify.awk ${src}/vm/interp.c ${bld}/gnu-interp.c
+  COMMAND ${config}/gnuify ${config}/gnuify.awk ${bld}/interp.c ${bld}/gnu-interp.c
 )
 
 INCLUDE_DIRECTORIES (