I did not see that there were changes done by GedMurphy and Colin Finck. Readded again. Sry...

svn path=/trunk/tools/RosBE-Windows/; revision=211
This commit is contained in:
Daniel Reimer 2007-06-05 21:40:49 +00:00
parent e8b03200aa
commit 15850d51fa
2 changed files with 40 additions and 29 deletions

View File

@ -0,0 +1,33 @@
:: Shared actions for "Build.cmd" and "Build-Multi.cmd"
::
:: Check if config.template.rbuild is newer than config.rbuild,
:: if it is then abort the build and inform the user.
::
if exist "%_ROSSOURCEDIR%\config.rbuild" (
"%ROSBEBASEDIR%\Tools\test.exe" "%_ROSSOURCEDIR%\config.template.rbuild" -nt "%_ROSSOURCEDIR%\config.rbuild"
if not errorlevel 1 (
echo.
echo *** config.template.rbuild is newer than config.rbuild ***
echo *** aborting build. Please check for changes and ***
echo *** update your config.rbuild. ***
echo.
goto :EOF
)
)
::
:: Get the current date and time for use in
:: in our build log's file name.
::
call %ROSBEBASEDIR%\TimeDate.cmd
::
:: Execute the Build command
::
call "%ROSBEBASEDIR%\Tools\buildtime.exe" %MAKE_COMMAND% 2>&1 | "%ROSBEBASEDIR%\Tools\tee.exe" "%_ROSBELOGDIR%\BuildLog-%_MINGWVERSION%-%DATENAME%-%TIMENAME%.txt"
::
:: highlight the fact that building has ended
::
call "%ROSBEBASEDIR%\Tools\flash.exe"

View File

@ -1,37 +1,15 @@
:: Copyright (c) Peter Ward and Daniel Reimer. All rights reserved.
:: Copyright (c) Peter Ward. All rights reserved.
:: (Inspired by Dazzle from TinyKRNL)
::
:: Perform the build of ReactOS.
::
title Building...
:: Perform the build of ReactOS.
@echo off
::
:: Get the current date and time for use in in our build log's file name.
:: Set the build command
::
call "%ROSBEBASEDIR%\TimeDate.cmd"
set MAKE_COMMAND="%_MINGWMAKE%" %*
::
:: Check if config.template.rbuild is newer than config.rbuild,
:: if it is then abort the build and inform the user.
:: Execute the shared build commands
::
if exist "%_ROSSOURCEDIR%\config.rbuild" (
"%ROSBEBASEDIR%\Tools\test.exe" "%_ROSSOURCEDIR%\config.template.rbuild" -nt "%_ROSSOURCEDIR%\config.rbuild"
if not errorlevel 1 (
echo.
echo *** config.template.rbuild is newer than config.rbuild ***
echo *** aborting build. Please check for changes and ***
echo *** update your config.rbuild. ***
echo.
goto :EOF
)
)
::
:: Now use mingw32-make to build ReactOS, passing along options, if any.
::
if "%1" == "" (
%ROSBEBASEDIR%\Tools\buildtime.exe %_MINGWMAKE% 2>&1 | %ROSBEBASEDIR%\Tools\tee.exe %_ROSBELOGDIR%\BuildLog-%_MINGWVERSION%-%DATENAME%-%TIMENAME%.txt
) else (
%ROSBEBASEDIR%\Tools\buildtime.exe %_MINGWMAKE% %* 2>&1 | %ROSBEBASEDIR%\Tools\tee.exe %_ROSBELOGDIR%\BuildLog-%_MINGWVERSION%-%DATENAME%-%TIMENAME%.txt
)
call "%ROSBEBASEDIR%\Build-Shared.cmd"