mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-24 03:49:45 +00:00
- Fix the config.rbuild checks... variable expansion in cmd sucks :P.
svn path=/trunk/tools/RosBE-Windows/; revision=481
This commit is contained in:
parent
98d9a2dc02
commit
bc9e9bbce2
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user