Author: dreimer Date: Fri May 2 14:44:47 2008 New Revision: 33246
URL: http://svn.reactos.org/svn/reactos?rev=33246&view=rev Log: ByeBye checknewer. HELLO gi ByeBye cpucount. HELLO WMI Commands
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/Powershel... ============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] Fri May 2 14:44:47 2008 @@ -12,8 +12,7 @@ # abort the build and inform the user. # if (Test-Path ".\config.rbuild") { - "$_ROSBE_BASEDIR\Tools\chknewer.exe .\config.template.rbuild .\config.rbuild" - if (errorlevel -eq 1) { + if ((gi .\config.template.rbuild).LastWriteTime -gt (gi .\config.rbuild).LastWriteTime) { "" "*** config.template.rbuild is newer than config.rbuild ***" "*** aborting build. Please check for changes and ***" @@ -126,7 +125,7 @@ # -x2 - Number of CPUs, doubled. # -a - Determine the cpu count based on the inherited process affinity mask. # - $CPUCOUNT= &"$_ROSBE_BASEDIR\Tools\cpucount.exe" -x1 + $CPUCOUNT= (gwmi win32_processor).numberofcores + 1
if ($_ROSBE_SHOWTIME -eq 1) { [System.Diagnostics.Stopwatch] $sw;