Author: peterw
Date: Thu Dec 6 00:50:26 2007
New Revision: 31027
URL:
http://svn.reactos.org/svn/reactos?rev=31027&view=rev
Log:
- Final fix for 'chdefgcc'... honest.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/chdefgcc.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/chdefgcc.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/chd…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/chdefgcc.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/chdefgcc.cmd Thu Dec 6 00:50:26 2007
@@ -15,10 +15,9 @@
::
:: Parse the command line arguments.
::
-if %1 == "" (
+for /f "usebackq tokens=*" %%i in
(`""%_ROSBE_BASEDIR%\Tools\rquote.exe" %1"`) do set _1=%%i
+if "%1" == "" (
call :INTERACTIVE
-) else (
- for /f "usebackq tokens=*" %%i in
(`""%_ROSBE_BASEDIR%\Tools\rquote.exe" %1"`) do set _1=%%i
)
if not exist "%_1%\." (
@@ -37,6 +36,7 @@
:INTERACTIVE
set /p _1="Please enter a MinGW/GCC directory: "
+for /f "usebackq tokens=*" %%i in
(`""%_ROSBE_BASEDIR%\Tools\rquote.exe" %_1%"`) do set _1=%%i
if "%_1%" == "" (
echo ERROR: You must enter a MinGW/GCC directory.
goto :EOC