Author: faridz
Date: Tue Oct 30 12:34:45 2007
New Revision: 590300
URL: http://svn.apache.org/viewvc?rev=590300&view=rev
Log:
2007-10-30 Farid Zaripov <[EMAIL PROTECTED]>
Merged r590279 from branches/4.2.x
* build.wsf (TimeEcho): New function to print the message with
timestamp.
Use TimeEcho() for the printing messages on every build stage.
Modified:
incubator/stdcxx/trunk/etc/config/windows/build.wsf
Modified: incubator/stdcxx/trunk/etc/config/windows/build.wsf
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/build.wsf?rev=590300&r1=590299&r2=590300&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/build.wsf (original)
+++ incubator/stdcxx/trunk/etc/config/windows/build.wsf Tue Oct 30 12:34:45 2007
@@ -226,6 +226,11 @@
return 1;
}
+function TimeEcho(msg)
+{
+ WScript.Echo(Date() + ": " + msg);
+}
+
// the main function of the script
function build()
{
@@ -241,7 +246,7 @@
var solutionName = slnDir + "\\" + currentCfg + ".sln";
- WScript.Echo("Loading solution...");
+ TimeEcho("Loading solution...");
var solution = dte.Solution;
var retCode = 0;
@@ -392,7 +397,7 @@
oldLogging = projectEngine.BuildLogging;
projectEngine.BuildLogging = true;
- WScript.Echo("Performing configure step...\n");
+ TimeEcho("Performing configure step...\n");
var res = BuildProject(solutionBuild, ".configure");
if (0 < res)
{
@@ -400,7 +405,7 @@
break;
}
- WScript.Echo("Compiling stdcxx library...\n");
+ TimeEcho("Compiling stdcxx library...\n");
res = BuildProject(solutionBuild, ".stdcxx");
if (0 < res)
{
@@ -408,19 +413,19 @@
break;
}
- WScript.Echo("Compiling examples...\n");
+ TimeEcho("Compiling examples...\n");
BuildProject(solutionBuild, ".stdcxx_examples");
- WScript.Echo("Compiling rwtest library...\n");
+ TimeEcho("Compiling rwtest library...\n");
res = BuildProject(solutionBuild, ".rwtest");
if (0 == res)
{
runTests = true;
- WScript.Echo("Compiling tests...\n");
+ TimeEcho("Compiling tests...\n");
BuildProject(solutionBuild, ".stdcxx_tests");
}
- WScript.Echo("Compiling utils...\n");
+ TimeEcho("Compiling utils...\n");
// compile exec utility
var resExec = BuildProject(solutionBuild, "util_exec");
// compile rest utils
@@ -434,12 +439,12 @@
if (buildOnly)
break;
- WScript.Echo("Running examples...\n");
+ TimeEcho("Running examples...\n");
BuildProject(solutionBuild, ".stdcxx_runexamples");
if (runTests)
{
- WScript.Echo("Running tests...\n");
+ TimeEcho("Running tests...\n");
BuildProject(solutionBuild, ".stdcxx_runtests");
}
@@ -449,7 +454,7 @@
break;
}
- WScript.Echo("Running locales tests...");
+ TimeEcho("Running locales tests...");
BuildProject(solutionBuild, ".stdcxx_testlocales");
}
while (false);
@@ -481,10 +486,12 @@
if (null != prop)
prop.Value = propVal;
+ TimeEcho("Closing the VisualStudio...");
solution = null;
dte.Quit();
dte = null;
+ TimeEcho("Exiting...");
WScript.Quit(retCode);
}