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/Powershe…
==============================================================================
--- 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"