stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r527435 - /incubator/stdcxx/trunk/etc/config/windows/generate.wsf
Date Wed, 11 Apr 2007 09:55:37 GMT
Author: faridz
Date: Wed Apr 11 02:55:34 2007
New Revision: 527435

URL: http://svn.apache.org/viewvc?view=rev&rev=527435
Log:
2007-04-11 Farid Zaripov <Farid_Zaripov@epam.com>

	* generate.wsf (Echo): New function to replace WScript.Echo().

Modified:
    incubator/stdcxx/trunk/etc/config/windows/generate.wsf

Modified: incubator/stdcxx/trunk/etc/config/windows/generate.wsf
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/generate.wsf?view=diff&rev=527435&r1=527434&r2=527435
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/generate.wsf (original)
+++ incubator/stdcxx/trunk/etc/config/windows/generate.wsf Wed Apr 11 02:55:34 2007
@@ -83,18 +83,25 @@
 
 var description = new generate; // run
 
+// the replacement of the WScript.Echo()
+function Echo(msg)
+{
+    // WScript.Echo(msg);
+    WScript.StdOut.WriteLine(msg);
+}
+
 // print message to the stdout and out the message to the logfile
 function LogMessage(msg)
 {
-    WScript.Echo(msg);
+    Echo(msg);
     logStream.WriteLine(msg);
 }
 
 // the main function of the script
 function generate()
 {
-    WScript.Echo("Solution generation script");
-    WScript.Echo("Checking arguments...");
+    Echo("Solution generation script");
+    Echo("Checking arguments...");
     
     readAndCheckArguments();
     createBuildDirs();
@@ -102,7 +109,7 @@
     outDirBase = outDir;
     outDir += "\\" + currentCfg;
 
-    WScript.Echo("Checking consistence...");
+    Echo("Checking consistence...");
     logFile = currentCfg + logFile;
     logStream = fso.CreateTextFile(outDir + "\\" + logFile, true, false);
 
@@ -184,7 +191,7 @@
     var logPath = outDir + "\\" + currentCfg + "slngen.log";
     var resLogPath = "file://" + logPath.replace(/\\/mg, "/");
     
-    WScript.Echo("Solution was generated successfully. See " + 
+    Echo("Solution was generated successfully. See " + 
         resLogPath + " for details.");
         
     WScript.Quit(0);
@@ -334,7 +341,7 @@
         if (! fso.FolderExists(builddir))
             fso.CreateFolder(builddir); 
         
-        WScript.Echo("Building directory tree created");
+        Echo("Building directory tree created");
     }
     catch(e)
     {
@@ -418,7 +425,7 @@
     }
     catch(e)
     {
-        WScript.Echo("error creating the build batch file");
+        Echo("error creating the build batch file");
         return 0;
     }
 }



Mime
View raw message