[ros-diffs] [dreimer] 41897: Fix a bug. Spotted by paule_52

dreimer at svn.reactos.org dreimer at svn.reactos.org
Sun Jul 12 00:56:06 CEST 2009


Author: dreimer
Date: Sun Jul 12 02:56:05 2009
New Revision: 41897

URL: http://svn.reactos.org/svn/reactos?rev=41897&view=rev
Log:
Fix a bug. Spotted by paule_52

Modified:
    trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1

Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1?rev=41897&r1=41896&r2=41897&view=diff
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] Sun Jul 12 02:56:05 2009
@@ -85,19 +85,19 @@
 if ($_ROSBE_SHOWTIME -eq 1) {
     [System.Diagnostics.Stopwatch] $sw;
     $sw = New-Object System.Diagnostics.StopWatch
+    $sw.Start()
 }
 
 if ($_ROSBE_WRITELOG -eq 1) {
-    $sw.Start()
     $file = "$_ROSBE_LOGDIR\BuildLog-$_ROSBE_TARGET_GCCVERSION-$DATENAME-$TIMENAME.txt"
     &{IEX "&'$_ROSBE_MINGWMAKE' -j $MAKE_JOBS $($args)"} $($args) 2>&1 | tee-object $file
+} else {
+    &{IEX "&'$_ROSBE_MINGWMAKE' -j $MAKE_JOBS $($args)"} $($args)
+}
+if ($_ROSBE_SHOWTIME -eq 1) {
     $sw.Stop()
-} else {
-    $sw.Start()
-    &{IEX "&'$_ROSBE_MINGWMAKE' -j $MAKE_JOBS $($args)"} $($args)
-    $sw.Stop()
+    write-host "Total Build Time:" $sw.Elapsed.ToString()
 }
-write-host "Total Build Time:" $sw.Elapsed.ToString()
 
 # Highlight the fact that building has ended.
 "$_ROSBE_BASEDIR\Tools\flash.exe"



More information about the Ros-diffs mailing list