mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-24 11:59:57 +00:00
- Update comments.
- Update changelog. - Add new option called update to config.cmd an add it into help.cmd. - Update build-shared the way that you get a message to use "config update" instead of a nonsens sentence. svn path=/trunk/tools/RosBE-Windows/; revision=344
This commit is contained in:
parent
2511ea65ff
commit
7511030ef0
@ -11,7 +11,7 @@
|
||||
@echo off
|
||||
|
||||
::
|
||||
:: Take over the 2nd parameter of Build.cmd, which enables/disables stripping
|
||||
:: Take over the 2nd parameter of Build.cmd, which enables/disables stripping.
|
||||
::
|
||||
if "%1" == "strip" (
|
||||
set ROS_LEAN_AND_MEAN = yes
|
||||
@ -25,7 +25,9 @@ if "%1" == "" (
|
||||
:Build
|
||||
|
||||
::
|
||||
:: Check if our log directory exists, if it doesn't, create it.
|
||||
:: Check if our log directory exists, if it doesn't, create it. Also check
|
||||
:: if the default Path was editied by Config Tool. If so, update the
|
||||
:: path.
|
||||
::
|
||||
if %logdiff% == 0 (
|
||||
if not exist "RosBE-Logs\." (
|
||||
@ -43,10 +45,10 @@ if not exist "RosBE-Logs\." (
|
||||
if %logdiff% == 1 (
|
||||
if not exist "%ROSBE_LOGPATH%\." (
|
||||
echo LogFolder does not exist.
|
||||
) else (
|
||||
) else (
|
||||
set _ROSBELOGDIR=%ROSBE_LOGPATH%
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
::
|
||||
@ -58,8 +60,8 @@ if exist "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 *** aborting build. Please update your config.rbuild ***
|
||||
echo *** by typeing "config update". ***
|
||||
echo.
|
||||
goto :EOB
|
||||
)
|
||||
|
@ -10,6 +10,7 @@
|
||||
- Updated Tools. (Daniel Reimer)
|
||||
- sSVN asks you if you wanna update if Offline Source Tree is old. (Daniel Reimer)
|
||||
- Fixed DOZENS of bugs/stupid coded parts/things you could get easier... (Daniel Reimer)
|
||||
- Add a new option called update to Config.cmd and add some security stuff. (Daniel Reimer)
|
||||
|
||||
*** July 26th, 2007 - RosBE 0.3.7.1 Released
|
||||
|
||||
|
@ -6,11 +6,22 @@
|
||||
:: COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel@freenet.de>
|
||||
::
|
||||
::
|
||||
@echo off
|
||||
::@echo off
|
||||
|
||||
title ReactOS Build Configurator
|
||||
|
||||
::
|
||||
:: Receive the first Parameter and decide what to do.
|
||||
::
|
||||
if "%1" == "delete" (
|
||||
echo config.rbuild will be permanently deleted. All your settings will be gone.
|
||||
echo Continue?
|
||||
:: SET /P XY=(yes), (no)
|
||||
:: if /I "%XY%"=="yes" goto :CONT
|
||||
:: if /I "%XY%"=="no" goto :NOK
|
||||
:: goto :NOK
|
||||
|
||||
:CONT
|
||||
if exist "config.rbuild" (
|
||||
del "config.rbuild"
|
||||
echo Main Configuration File was found and deleted.
|
||||
@ -25,15 +36,35 @@ if "%1" == "delete" (
|
||||
)
|
||||
goto :NOK
|
||||
)
|
||||
if "%1" == "update" (
|
||||
echo old config.rbuild will be deleted and will be updated with a recent,
|
||||
echo default one. You will need to reconfigure it to your wishes later.
|
||||
echo Continue?
|
||||
:: SET /P XY=(yes), (no)
|
||||
:: if /I "%XY%"=="yes" goto :CONT2
|
||||
:: if /I "%XY%"=="no" goto :NOK
|
||||
:CONT2
|
||||
del "%ROSBEBASEDIR%\*.rbuild"
|
||||
del "config.rbuild"
|
||||
copy "config.template.rbuild" "%ROSBEBASEDIR%\config.rbuild"
|
||||
echo Updated.
|
||||
goto :NOK
|
||||
)
|
||||
if not "%1" == "" (
|
||||
echo Unknown parameter specified. Try 'help [COMMAND]'.
|
||||
goto :NOK
|
||||
)
|
||||
|
||||
::
|
||||
:: Check if config.rbuild already exists. If not, get a working copy.
|
||||
::
|
||||
if not exist "%ROSBEBASEDIR%\config.rbuild" (
|
||||
copy "config.template.rbuild" "%ROSBEBASEDIR%\config.rbuild"
|
||||
)
|
||||
|
||||
::
|
||||
:: N00b Blocker :-P
|
||||
::
|
||||
echo WARNING:
|
||||
echo Non-Default-Configurations are not useable for pasteing Bugs to
|
||||
echo Bugzilla or asking quesions about in Forum/Chat!
|
||||
@ -47,6 +78,30 @@ if /I "%XY%"=="no" goto :NOK
|
||||
goto :NOK
|
||||
|
||||
:OK
|
||||
|
||||
::
|
||||
:: Check if config.template.rbuild is newer than config.rbuild, if it is then
|
||||
:: inform the user and offer an update.
|
||||
::
|
||||
if exist "%ROSBEBASEDIR%\config.rbuild" (
|
||||
test "config.template.rbuild" -nt "%ROSBEBASEDIR%\config.rbuild"
|
||||
if not errorlevel 1 (
|
||||
echo.
|
||||
echo *** config.template.rbuild is newer than working config.rbuild ***
|
||||
echo *** The Editor cannot continue with this file. Do you wanna ***
|
||||
echo *** update to the most recent one? You need to reset all your ***
|
||||
cho *** previously made settings. ***
|
||||
echo.
|
||||
SET /P XY=(yes), (no)
|
||||
if /I "%XY%"=="yes" del "%ROSBEBASEDIR%\*.rbuild" | del "config.rbuild" | copy "config.template.rbuild" "%ROSBEBASEDIR%\config.rbuild" | goto :OK
|
||||
if /I "%XY%"=="no" goto :NOK
|
||||
goto :NOK
|
||||
)
|
||||
)
|
||||
|
||||
::
|
||||
:: Start with reading settings from config.rbuild and let the user edit them.
|
||||
::
|
||||
echo Architecture to build for. Not Editable.
|
||||
echo.
|
||||
echo Right now
|
||||
@ -160,6 +215,9 @@ grep \"_WINKD_\" "%ROSBEBASEDIR%\config.rbuild"|cut -d "\"" -f 4
|
||||
SET /P F= (0), (1)
|
||||
sed "s/\"_WINKD_\" value=\"[0-1]\"/\"_WINKD_\" value=\"%F%\"/g" "%ROSBEBASEDIR%\config9.rbuild" > "%ROSBEBASEDIR%\config10.rbuild"
|
||||
|
||||
::
|
||||
:: Generate a config.rbuild, copy it to the Source Tree and delete temp files.
|
||||
::
|
||||
copy "%ROSBEBASEDIR%\config10.rbuild" "%ROSBEBASEDIR%\config.tmp"
|
||||
del "%ROSBEBASEDIR%\*.rbuild"
|
||||
copy "%ROSBEBASEDIR%\config.tmp" "%ROSBEBASEDIR%\config.rbuild"
|
||||
|
@ -11,6 +11,9 @@
|
||||
|
||||
title ReactOS Build Environment %_VER%
|
||||
|
||||
::
|
||||
:: Receive the first Parameter and decide what to do.
|
||||
::
|
||||
if "%1" == "" (
|
||||
echo.
|
||||
echo Available Commands:
|
||||
@ -85,6 +88,8 @@ if "%1" == "config" (
|
||||
echo.
|
||||
echo delete - Deletes the created configuration File and so sets back
|
||||
echo to default settings.
|
||||
echo update - Deletes the old created configuration File and updats
|
||||
echo with a new, default one.
|
||||
goto :EOF
|
||||
)
|
||||
if "%1" == "raddr2line" (
|
||||
|
@ -11,7 +11,8 @@
|
||||
@echo off
|
||||
|
||||
::
|
||||
:: Set Defaults to work with and override if needed.
|
||||
:: Set Defaults to work with and override them if edited by
|
||||
:: Config Tool.
|
||||
::
|
||||
color 0A
|
||||
set _VER=0.3.7.2
|
||||
@ -21,7 +22,7 @@ set /P ROSBEBASEDIR=< "C:\aaa.tmp"
|
||||
del "C:\aaa.tmp"
|
||||
set ROSBE_SHOWTIME=1
|
||||
set ROSBE_WRITELOG=1
|
||||
set _LOGDIR=RosBE-Logs
|
||||
set _LOGDIR=%CD%\RosBE-Logs
|
||||
|
||||
if exist %ROSBEBASEDIR%\options.cmd (
|
||||
goto :PREV
|
||||
@ -41,6 +42,9 @@ if %_LOGDIR% == %ROSBE_LOGPATH% (
|
||||
:NEXT
|
||||
title ReactOS Build Environment %_VER%
|
||||
|
||||
::
|
||||
:: Make sure RosBE was initialized right.
|
||||
::
|
||||
if "%1" == "" (
|
||||
cls
|
||||
call :RosBE4
|
||||
|
@ -11,12 +11,12 @@
|
||||
|
||||
title relAddr2Line...
|
||||
|
||||
set _1=%1
|
||||
set _2=%2
|
||||
|
||||
::
|
||||
:: Receive the Parameters and decide what to do.
|
||||
::
|
||||
set _1=%1
|
||||
set _2=%2
|
||||
|
||||
if "%_1%" == "" (
|
||||
goto :MAN
|
||||
)
|
||||
@ -46,6 +46,12 @@ SET /P _2=
|
||||
goto :EOC
|
||||
|
||||
:EOC
|
||||
::
|
||||
:: First get the ImageBase of the File. If its smaller than the given
|
||||
:: Parameter, everything is ok, because it was already added onto the
|
||||
:: adress and can be given directly to raddr2line. If not, add it and
|
||||
:: give the result to raddr2line.
|
||||
::
|
||||
for /f "tokens=2" %%i in ('"objdump -p %_1% 2>NUL | findstr ImageBase"') do SET baseaddr=0x%%i
|
||||
if %%i LSS %_2% (
|
||||
raddr2line "%_1%" "%_2%" 2>NUL
|
||||
|
@ -15,6 +15,9 @@ if "%1" == "" (
|
||||
echo No parameter specified. Try 'help [COMMAND]'.
|
||||
goto :ExitSVN
|
||||
)
|
||||
::
|
||||
:: These two are directly parsed to svn.
|
||||
::
|
||||
if "%1" == "update" (
|
||||
title Updating...
|
||||
if not "%2" == "" (
|
||||
@ -47,6 +50,10 @@ if "%1" == "create" (
|
||||
)
|
||||
goto :ExitSVN
|
||||
)
|
||||
::
|
||||
:: Output the rev of your and the Online Tree and tell the User if
|
||||
:: its Up to Date or not.
|
||||
::
|
||||
if "%1" == "status" (
|
||||
title Status
|
||||
for /f "usebackq" %%i IN (`svnversion .`) DO @set OFFSVN=%%i
|
||||
|
Loading…
Reference in New Issue
Block a user