First look into %_ROSBE_BASEDIR% for the specified directory and use it if it exists.

This makes it possible to just call "chdefgcc 3.4.5" instead of "chdefgcc full\path\to\the\3.4.5\directory" if there is a "3.4.5" directory in the RosBE installation directory.

svn path=/trunk/tools/RosBE/; revision=728
This commit is contained in:
Colin Finck 2008-05-04 20:26:34 +00:00
parent a5e13db6f9
commit 83f645cfeb

View File

@ -24,14 +24,18 @@ if "%_1%" == "" (
call :INTERACTIVE
)
if not exist "%_1%\." (
if exist "%_ROSBE_BASEDIR%\%_1%\." (
set _1="%_ROSBE_BASEDIR%\%_1%"
) else if not exist "%_1%\." (
echo ERROR: The path specified doesn't seem to exist.
goto :EOC
)
if not exist "%_1%\bin\gcc.exe" (
echo ERROR: No MinGW/GCC found in the specified path.
goto :EOC
)
set _ROSBE_MINGWPATH=%_1%
echo Location: %_ROSBE_MINGWPATH%
call "%_ROSBE_BASEDIR%\rosbe-gcc-env.cmd"