mirror of
https://github.com/reactos/RosBE.git
synced 2024-12-03 17:02:07 +00:00
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:
parent
e8b03200aa
commit
15850d51fa
33
RosBE-Windows/Root/Build-Shared.cmd
Normal file
33
RosBE-Windows/Root/Build-Shared.cmd
Normal 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"
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user