- Fix the config.rbuild checks... variable expansion in cmd sucks :P.

svn path=/trunk/tools/RosBE-Windows/; revision=481
This commit is contained in:
Peter Ward 2007-11-01 15:45:51 +00:00
parent 98d9a2dc02
commit bc9e9bbce2
2 changed files with 6 additions and 2 deletions

View File

@ -16,9 +16,10 @@ title Building...
:: Check if config.template.rbuild is newer than config.rbuild, if it is then
:: abort the build and inform the user.
::
setlocal enabledelayedexpansion
if exist .\config.rbuild (
chknewer .\config.template.rbuild .\config.rbuild
if errorlevel 1 (
if !errorlevel! == 1 (
echo.
echo *** config.template.rbuild is newer than config.rbuild ***
echo *** aborting build. Please check for changes and ***
@ -27,6 +28,7 @@ if exist .\config.rbuild (
goto :EOC
)
)
endlocal
::
:: Check if strip or ccache are being used and set the appropriate options.

View File

@ -84,9 +84,10 @@ goto :NOK
:: Check if config.template.rbuild is newer than config.rbuild, if it is then
:: inform the user and offer an update.
::
setlocal enabledelayedexpansion
if exist ".\config.rbuild" (
chknewer ".\config.template.rbuild" ".\config.rbuild"
if errorlevel 1 (
if !errorlevel! == 1 (
echo.
echo *** config.template.rbuild is newer than working config.rbuild ***
echo *** The Editor cannot continue with this file. Do you wanna ***
@ -99,6 +100,7 @@ if exist ".\config.rbuild" (
goto :NOK
)
)
endlocal
::
:: Start with reading settings from config.rbuild and let the user edit them.