Author: peterw
Date: Tue Oct 23 04:56:07 2007
New Revision: 29806
URL:
http://svn.reactos.org/svn/reactos?rev=29806&view=rev
Log:
- Remove the doskey macro for a component if it is not actually present.
Modified:
trunk/tools/RosBE-Windows/Root/RosBE.cmd
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 Tue Oct 23 04:56:07 2007
@@ -83,7 +83,7 @@
::
:: Load the doskey macros that serve as our commands.
::
-doskey /macrofile="%_ROSBE_BASEDIR%\RosBE.mac"
+call :LOADDOSKEYMACROS
::
:: Look if the Source Folder is empty. If so, ask for using "ssvn create".
@@ -122,4 +122,19 @@
echo.
goto :EOF
+::
+:: Load the doskey macros and delete any macros for components
+:: that are not actually present.
+::
+:LOADDOSKEYMACROS
+ doskey /macrofile="%_ROSBE_BASEDIR%\RosBE.mac"
+
+ if not exist "%_ROSBE_BASEDIR%\chdefdir.cmd" ( doskey CHDEFDIR= )
+ if not exist "%_ROSBE_BASEDIR%\Config.cmd" ( doskey CONFIG= )
+ if not exist "%_ROSBE_BASEDIR%\reladdr2line.cmd" ( doskey RADDR2LINE= )
+ if not exist "%_ROSBE_BASEDIR%\scut.cmd" ( doskey SCUT= )
+ if not exist "%_ROSBE_BASEDIR%\sSVN.cmd" ( doskey SSVN= )
+ if not exist "%_ROSBE_BASEDIR%\options.cmd" ( doskey OPTIONS= )
+goto :EOF
+
:ExitRosBE