[ros-diffs] [cfinck] 39138: - Prepend %_ROSBE_ROSSOURCEDIR% to the files and folders when cleaning. This makes sure cleaning also works properly when you're not in the source dir. It also prevents your tree from being totally wiped if you're i.e. on S:\ and your source tree is in S:\reactos. - Set ROS_ARCH already some places before, so we can skip some 'if "%ROS_ARCH%" == ""' checks Thanks to Caemyr for testing.
cfinck at svn.reactos.org
cfinck at svn.reactos.org
Tue Jan 27 17:52:18 CET 2009
Author: cfinck
Date: Tue Jan 27 10:52:18 2009
New Revision: 39138
URL: http://svn.reactos.org/svn/reactos?rev=39138&view=rev
Log:
- Prepend %_ROSBE_ROSSOURCEDIR% to the files and folders when cleaning.
This makes sure cleaning also works properly when you're not in the source dir. It also prevents your tree from being totally wiped if you're i.e. on S:\ and your source tree is in S:\reactos.
- Set ROS_ARCH already some places before, so we can skip some 'if "%ROS_ARCH%" == ""' checks
Thanks to Caemyr for testing.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd?rev=39138&r1=39137&r2=39138&view=diff
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Clean.cmd [iso-8859-1] Tue Jan 27 10:52:18 2009
@@ -58,38 +58,30 @@
:: Apply modified obj and out paths for deletion.
::
+if "%ROS_ARCH%" == "" (
+ set ROS_ARCH=i386
+)
+
if "%_ROSBE_OBJPATH%" == "" (
- if not "%ROS_ARCH%" == "" (
- set _ROSBE_OBJCLEANPATH=obj-%ROS_ARCH%
- ) else (
- set _ROSBE_OBJCLEANPATH=obj-i386
- )
+ set _ROSBE_OBJCLEANPATH=%_ROSBE_ROSSOURCEDIR%\obj-%ROS_ARCH%
) else (
set _ROSBE_OBJCLEANPATH=%_ROSBE_OBJPATH%
)
if "%_ROSBE_OUTPATH%" == "" (
- if not "%ROS_ARCH%" == "" (
- set _ROSBE_OUTCLEANPATH=output-%ROS_ARCH%
- ) else (
- set _ROSBE_OUTCLEANPATH=output-i386
- )
+ set _ROSBE_OUTCLEANPATH=%_ROSBE_ROSSOURCEDIR%\output-%ROS_ARCH%
) else (
set _ROSBE_OUTCLEANPATH=%_ROSBE_OUTPATH%
)
-if not "%ROS_ARCH%" == "" (
- set _ROSBE_MAKEFILE=makefile-%ROS_ARCH%.auto
+if "%ROS_ARCH%" == "i386" (
+ set _ROSBE_MAKEFILE=%_ROSBE_ROSSOURCEDIR%\makefile.auto
) else (
- set _ROSBE_MAKEFILE=makefile.auto
+ set _ROSBE_MAKEFILE=%_ROSBE_ROSSOURCEDIR%\makefile-%ROS_ARCH%.auto
)
if exist "%_ROSBE_MAKEFILE%" (
del "%_ROSBE_MAKEFILE%" 1> NUL 2> NUL
-)
-
-if "%ROS_ARCH%" == "" (
- set ROS_ARCH=i386
)
if exist "%_ROSBE_OBJCLEANPATH%\." (
@@ -111,8 +103,8 @@
:ROS
-if exist "reactos\." (
- rd /s /q "reactos" 1> NUL 2> NUL
+if exist "%_ROSBE_ROSSOURCEDIR%\reactos\." (
+ rd /s /q "%_ROSBE_ROSSOURCEDIR%\reactos" 1> NUL 2> NUL
)
goto :EOF
More information about the Ros-diffs
mailing list