SF.net SVN: mahogany: [7191] trunk/M/extra/scripts/m4.bat

[email protected]
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Revision: 7191
          http://svn.sourceforge.net/mahogany/?rev=7191&view=rev
Author:   vadz
Date:     2006-12-25 11:33:47 -0800 (Mon, 25 Dec 2006)

Log Message:
-----------
ensure that MInterface.cpp/.h files we create when m4 is not available have the correct timestamps (otherwise they're rebuilt over and over again)

Modified Paths:
--------------
    trunk/M/extra/scripts/m4.bat

Modified: trunk/M/extra/scripts/m4.bat
===================================================================
--- trunk/M/extra/scripts/m4.bat	2006-12-25 19:19:24 UTC (rev 7190)
+++ trunk/M/extra/scripts/m4.bat	2006-12-25 19:33:47 UTC (rev 7191)
@@ -15,8 +15,11 @@
 goto end
 
 :no_m4
-copy %2\MInterface.cpp.m4 %1\MInterface.cpp
-copy %2\MInterface.h.m4 %1\MInterface.h
+echo m4 not available (please ignore the error above), use preprocessed files
+
+rem use type + redirection to ensure that output files have timestamp of now
+type %2\MInterface.cpp.m4 > %1\MInterface.cpp
+type %2\MInterface.h.m4 > %1\MInterface.h
 goto end
 
 :usage


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.