Author: dreimer Date: Fri Jun 15 00:10:54 2007 New Revision: 27179
URL: http://svn.reactos.org/svn/reactos?rev=27179&view=rev Log: - Added some comments. - Prettify Config's delete Parameter output. - Prevent stupid behavior when unspecified Parameter si set. - Add support for selecting the rv to be updated to in SVN Tool.
Modified: trunk/tools/RosBE-Windows/Root/Build-Shared.cmd trunk/tools/RosBE-Windows/Root/Config.cmd trunk/tools/RosBE-Windows/Root/Help.cmd trunk/tools/RosBE-Windows/Root/SVN.cmd
Modified: trunk/tools/RosBE-Windows/Root/Build-Shared.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Build-Shar... ============================================================================== --- trunk/tools/RosBE-Windows/Root/Build-Shared.cmd (original) +++ trunk/tools/RosBE-Windows/Root/Build-Shared.cmd Fri Jun 15 00:10:54 2007 @@ -12,6 +12,9 @@
title Building...
+:: +:: Take over the 2nd parameter of Build.cmd, which enables/disables stripping +:: if "%1" == "strip" ( set ROS_LEAN_AND_MEAN = yes goto :Build
Modified: trunk/tools/RosBE-Windows/Root/Config.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Config.cmd... ============================================================================== --- trunk/tools/RosBE-Windows/Root/Config.cmd (original) +++ trunk/tools/RosBE-Windows/Root/Config.cmd Fri Jun 15 00:10:54 2007 @@ -10,14 +10,28 @@
title ReactOS Build Configurator
+if "%1" == "delete" ( + if exist "%_ROSSOURCEDIR%\config.rbuild" ( + del %_ROSSOURCEDIR%\config.rbuild + echo Main Configuration File was found and deleted. + ) else ( + echo Main Configuration File was not found in ReactOS Source Tree. + ) + if exist "%ROSBEBASEDIR%\Tools\config.rbuild" ( + del %ROSBEBASEDIR%\Tools\config.rbuild + echo Working Configuration File was found and deleted. + ) else ( + echo Working Configuration File was not found in ReactOS Source Tree. + ) +goto :NOK +) +if not "%1" == "" ( + echo Unknown parameter specified. Try 'help [COMMAND]'. + goto :NOK +) + if not exist "%ROSBEBASEDIR%\Tools\config.rbuild" ( copy "%_ROSSOURCEDIR%\config.template.rbuild" "%ROSBEBASEDIR%\Tools\config.rbuild" -) - -if "%1" == "delete" ( - del %_ROSSOURCEDIR%\config.rbuild - del %ROSBEBASEDIR%\Tools\config.rbuild - goto :NOK )
echo WARNING:
Modified: trunk/tools/RosBE-Windows/Root/Help.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Help.cmd?r... ============================================================================== --- trunk/tools/RosBE-Windows/Root/Help.cmd (original) +++ trunk/tools/RosBE-Windows/Root/Help.cmd Fri Jun 15 00:10:54 2007 @@ -26,7 +26,7 @@ echo help [COMMAND] - Display the available commands or help on a echo specific command. echo svn [OPTIONS] - Create, Update or clean up your ReactOS Source - echo tree. + echo Tree. echo config [OPTIONS]- Configures the way, ReactOS will be built. echo. echo basedir - Switch back to the ReactOS source directory. @@ -62,9 +62,10 @@ ) if "%1" == "svn" ( echo Usage: svn [OPTIONS] - echo Creates, Updates or cleans up your ReactOS Source tree. + echo Creates, Updates or cleans up your ReactOS Source Tree. echo. - echo update - Updates to HEAD Revision. + echo update - Updates to HEAD Revision or to a specific one when + echo second parameter specifies one. echo create - Creates a new ReactOS Tree. echo cleanup - Cleans up and fixes errors in Tree. goto :EOF
Modified: trunk/tools/RosBE-Windows/Root/SVN.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/SVN.cmd?re... ============================================================================== --- trunk/tools/RosBE-Windows/Root/SVN.cmd (original) +++ trunk/tools/RosBE-Windows/Root/SVN.cmd Fri Jun 15 00:10:54 2007 @@ -9,12 +9,20 @@ @echo off
:: -:: Execute the Build command +:: Receive the first Parameter and decide what to do. :: +if "%1" == "" ( + echo No parameter specified. Try 'help [COMMAND]'. + goto :ExitSVN +) if "%1" == "update" ( title Updating... - %ROSBEBASEDIR%\Tools\svn.exe update %_ROSSOURCEDIR% %2 - goto :ExitSVN + if not "%2" == "" ( + %ROSBEBASEDIR%\Tools\svn.exe update %_ROSSOURCEDIR% -r %2 + ) else ( + %ROSBEBASEDIR%\Tools\svn.exe update %_ROSSOURCEDIR% + ) +goto :ExitSVN ) if "%1" == "cleanup" ( title Cleaning... @@ -28,6 +36,14 @@ goto :SVN ) ) +if not "%1" == "" ( + echo Unknown parameter specified. Try 'help [COMMAND]'. + goto :ExitSVN +) + +:: +:: Check if the Folder is empty. If not, output an error. +:: if exist "%_ROSSOURCEDIR%.svn." ( echo Folder already cotains a Reposority. Exiting goto :ExitSVN