[ros-diffs] [dreimer] 48578: Added way to change the ccache dir. define a _ROSBE_CCACHE_DIR Variable and it will be used instead of the default path

dreimer at svn.reactos.org dreimer at svn.reactos.org
Sat Aug 21 14:30:39 UTC 2010


Author: dreimer
Date: Sat Aug 21 14:30:38 2010
New Revision: 48578

URL: http://svn.reactos.org/svn/reactos?rev=48578&view=rev
Log:
Added way to change the ccache dir. define a _ROSBE_CCACHE_DIR Variable and it will be used instead of the default path

Modified:
    trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1
    trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd

Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1?rev=48578&r1=48577&r2=48578&view=diff
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1 [iso-8859-1] Sat Aug 21 14:30:38 2010
@@ -77,7 +77,12 @@
 # To modify the number used, see the cpucount usage for getting to know about the possible options
 $global:_ROSBE_MAKEX_JOBS = (gwmi win32_processor).numberofcores + 1
 
-$ENV:CCACHE_DIR = "$ENV:APPDATA\RosBE\.ccache"
+if ("$ENV:_ROSBE_CCACHE_DIR" -eq "") {
+    $ENV:CCACHE_DIR = "$ENV:APPDATA\RosBE\.ccache"
+} else {
+    $ENV:CCACHE_DIR = "$_ROSBE_CCACHE_DIR"
+}
+
 $ENV:C_INCLUDE_PATH = $null
 $ENV:CPLUS_INCLUDE_PATH = $null
 $ENV:LIBRARY_PATH = $null

Modified: trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd?rev=48578&r1=48577&r2=48578&view=diff
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd [iso-8859-1] Sat Aug 21 14:30:38 2010
@@ -55,7 +55,12 @@
 :: To modify the number used, see the cpucount usage for getting to know about the possible options
 for /f "usebackq" %%i in (`"%_ROSBE_BASEDIR%\Tools\cpucount.exe" -x1`) do set _ROSBE_MAKEX_JOBS=%%i
 
-set CCACHE_DIR=%APPDATA%\RosBE\.ccache
+if "%_ROSBE_CCACHE_DIR%" == "" (
+    set CCACHE_DIR=%APPDATA%\RosBE\.ccache
+) else (
+    set CCACHE_DIR=%_ROSBE_CCACHE_DIR%
+)
+
 set C_INCLUDE_PATH=
 set CPLUS_INCLUDE_PATH=
 set LIBRARY_PATH=




More information about the Ros-diffs mailing list