Author: dreimer Date: Fri Oct 26 00:13:00 2007 New Revision: 29885
URL: http://svn.reactos.org/svn/reactos?rev=29885&view=rev Log: Add a Shortcut Listing Feature to scut.cmd. Modify many "if" to "if /I" to ignore lower and upper case.
Modified: trunk/tools/RosBE-Windows/Root/Clean.cmd trunk/tools/RosBE-Windows/Root/Config.cmd trunk/tools/RosBE-Windows/Root/Help.cmd trunk/tools/RosBE-Windows/Root/RosBE.cmd trunk/tools/RosBE-Windows/Root/chdefdir.cmd trunk/tools/RosBE-Windows/Root/sSVN.cmd trunk/tools/RosBE-Windows/Root/scut.cmd
Modified: trunk/tools/RosBE-Windows/Root/Clean.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Clean.cmd?... ============================================================================== --- trunk/tools/RosBE-Windows/Root/Clean.cmd (original) +++ trunk/tools/RosBE-Windows/Root/Clean.cmd Fri Oct 26 00:13:00 2007 @@ -105,7 +105,7 @@ ) goto :EOC ) -if "%1" == "logs" ( +if /i "%1" == "logs" ( :: : Check if we have any logs to clean, if so, clean them. ::
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 Oct 26 00:13:00 2007 @@ -13,7 +13,7 @@ :: :: Receive the first Parameter and decide what to do. :: -if "%1" == "delete" ( +if /i "%1" == "delete" ( echo config.rbuild will be permanently deleted. All your settings will be gone. echo Continue? set /p XY="(yes), (no)" @@ -36,7 +36,7 @@ ) goto :NOK ) -if "%1" == "update" ( +if /i "%1" == "update" ( echo old config.rbuild will be deleted and will be updated with a recent, echo default one. You will need to reconfigure it to your wishes later. echo Continue?
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 Oct 26 00:13:00 2007 @@ -46,7 +46,7 @@ )
if exist "%_ROSBE_BASEDIR%\scut.cmd" ( - echo scut [OPTIONS] - Define, Edit, Remove, Switch and Default to + echo scut [OPTIONS] - List, Define, Edit, Remove, Switch and Default to echo Shortcutted Source-Directories. )
@@ -69,13 +69,13 @@ :: Now check if we are displaying help on individual commands, if so, :: display the help for that command. :: -if "%1" == "make" ( +if /i "%1" == "make" ( echo Usage: make [OPTIONS] echo Without options it does a standard build of ReactOS. OPTIONS are the echo standard ReactOS build options ie. "bootcd", "livecd", etc. goto :EOC ) -if "%1" == "makex" ( +if /i "%1" == "makex" ( echo Usage: makex [OPTIONS] echo Same as 'make' but automatically determines the number of CPU Cores in echo the system and uses "make -j x" with the appropriate number. @@ -84,13 +84,13 @@ echo contained within the file. goto :EOC ) -if "%1" == "basedir" ( +if /i "%1" == "basedir" ( echo Usage: basedir echo Switches back to the ReactOS source directory. goto :EOC ) if exist "%_ROSBE_BASEDIR%\chdefdir.cmd" ( - if "%1" == "chdefdir" ( + if /i "%1" == "chdefdir" ( echo Usage: chdefdir [OPTIONS] echo Change the ReactOS source directory for the current RosBE session. echo. @@ -98,7 +98,7 @@ goto :EOC ) ) -if "%1" == "clean" ( +if /i "%1" == "clean" ( echo Usage: clean [logs] echo Fully clean the ReactOS source directory. echo. @@ -106,7 +106,7 @@ goto :EOC ) if exist "%_ROSBE_BASEDIR%\Config.cmd" ( - if "%1" == "config" ( + if /i "%1" == "config" ( echo Usage: config [OPTIONS] echo Creates a Configuration File, which tells RosBE how to build the Tree. echo. @@ -117,13 +117,13 @@ goto :EOC ) ) -if "%1" == "help" ( +if /i "%1" == "help" ( echo Usage: help [COMMAND] echo Shows help for the specified command or lists all available commands. goto :EOC ) if exist "%_ROSBE_BASEDIR%\reladdr2line.cmd" ( - if "%1" == "raddr2line" ( + if /i "%1" == "raddr2line" ( echo Usage: raddr2line [FILE] [ADDRESS] echo Translates program addresses into file names and line numbers to echo assist developers with finding specific bugs in ReactOS. If @@ -140,12 +140,14 @@ ) ) if exist "%_ROSBE_BASEDIR%\scut.cmd" ( - if "%1" == "scut" ( + if /i "%1" == "scut" ( echo Usage: scut [OPTIONS] echo Defines, Edits, Removes, Switches and Defaults to Shortcutted Source echo Directories. scut started without a parameter or with the name of a echo Shortcut as parameter sets this Shortcut active. echo. + echo list - Lists all Shortcuts. + echo Optional: "path" as second parameter lists the Paths, too. echo add - Adds a Shortcut. echo Optional: "Shortcut" "Directory" as second and third parameter echo rem - Removes a shortcut. @@ -159,7 +161,7 @@ ) ) if exist "%_ROSBE_BASEDIR%\sSVN.cmd" ( - if "%1" == "ssvn" ( + if /i "%1" == "ssvn" ( echo Usage: ssvn [OPTIONS] echo Creates, Updates or cleans up your ReactOS Source Tree or shows the echo Revision Number of the Offline Tree and Online HEAD Revision. @@ -174,7 +176,7 @@ ) ) if exist "%_ROSBE_BASEDIR%\options.cmd" ( - if "%1" == "options" ( + if /i "%1" == "options" ( echo Usage: options echo Starts RosBE Configurator and restarts RosBE afterwards to make the echo changes effective at the end.
Modified: trunk/tools/RosBE-Windows/Root/RosBE.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.cmd?... ============================================================================== --- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original) +++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Fri Oct 26 00:13:00 2007 @@ -41,7 +41,7 @@ :: :: Make sure RosBE was initialized right. :: -if "%1" == "oldmode" ( +if /i "%1" == "oldmode" ( cls set _ROSBE_OLDMODE="" call :RosBE4
Modified: trunk/tools/RosBE-Windows/Root/chdefdir.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/chdefdir.c... ============================================================================== --- trunk/tools/RosBE-Windows/Root/chdefdir.cmd (original) +++ trunk/tools/RosBE-Windows/Root/chdefdir.cmd Fri Oct 26 00:13:00 2007 @@ -20,7 +20,7 @@ ) else ( set _1=%1 ) -if "%_1%" == "previous" ( +if /i "%_1%" == "previous" ( set _ROSBE_ROSSOURCEDIR=%_ROSBE_PREVIOUSSOURCEDIR% ) else ( if not exist "%_1%." (
Modified: trunk/tools/RosBE-Windows/Root/sSVN.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/sSVN.cmd?r... ============================================================================== --- trunk/tools/RosBE-Windows/Root/sSVN.cmd (original) +++ trunk/tools/RosBE-Windows/Root/sSVN.cmd Fri Oct 26 00:13:00 2007 @@ -18,7 +18,7 @@ :: :: These two are directly parsed to svn. :: -if "%1" == "update" ( +if /i "%1" == "update" ( title Updating... if not "%2" == "" ( svn update -r %2 @@ -27,7 +27,7 @@ ) goto :ExitSVN ) -if "%1" == "cleanup" ( +if /i "%1" == "cleanup" ( title Cleaning... svn cleanup goto :ExitSVN @@ -36,7 +36,7 @@ :: Check if the Folder is empty. If not, output an error. ::
-if "%1" == "create" ( +if /i "%1" == "create" ( title Creating... if exist ".svn." ( echo ERROR: Folder already cotains a Reposority. Exiting @@ -54,7 +54,7 @@ :: Output the rev of your and the Online Tree and tell the User if :: its Up to Date or not. :: -if "%1" == "status" ( +if /i "%1" == "status" ( title Status for /f "usebackq tokens=2" %%i in (`"svn info | find "Revision:""`) do set OFFSVN=%%i for /f "usebackq tokens=2" %%j in (`"svn info svn://svn.reactos.org/reactos/trunk/reactos | find "Revision:""`) do set ONSVN=%%j
Modified: trunk/tools/RosBE-Windows/Root/scut.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/scut.cmd?r... ============================================================================== --- trunk/tools/RosBE-Windows/Root/scut.cmd (original) +++ trunk/tools/RosBE-Windows/Root/scut.cmd Fri Oct 26 00:13:00 2007 @@ -27,6 +27,17 @@ ) if /i "%1"=="def" ( goto :DEF2 +) +if /i "%1"=="list" ( + if /i "%2"=="" ( + echo Shortcuts: + for /f "usebackq tokens=1-2 delims=, skip=1" %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do echo %%i + ) + if /i "%2"=="path" ( + echo Shortcuts, Paths: + for /f "usebackq tokens=1-2 delims=, skip=1" %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do echo %%i, %%j + ) + goto :END ) if /i "%1"=="run" ( for /f "usebackq tokens=1-2 delims=," %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do (