mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-27 13:20:23 +00:00
5a3a9d2cc8
- Fix up the call of the i386 config file in charch. - Fix up default color of the 64 bit RosBE. - "Only" call the 64 bit config file when you are in 64 bit mode. - Fix the 64 bit options tool to be useable. svn path=/trunk/tools/RosBE/; revision=1078
49 lines
1.3 KiB
Batchfile
49 lines
1.3 KiB
Batchfile
::
|
|
:: PROJECT: RosBE - ReactOS Build Environment for Windows
|
|
:: LICENSE: GNU General Public License v2. (see LICENSE.txt)
|
|
:: FILE: Root/charch.cmd
|
|
:: PURPOSE: Tool to change the current Arch to build ROS for in RosBE.
|
|
:: COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel@freenet.de>
|
|
:: Colin Finck <colin@reactos.org>
|
|
::
|
|
|
|
@echo off
|
|
if not defined _ROSBE_DEBUG set _ROSBE_DEBUG=0
|
|
if %_ROSBE_DEBUG% == 1 (
|
|
@echo on
|
|
)
|
|
|
|
setlocal enabledelayedexpansion
|
|
title Change the Architecture to build for...
|
|
|
|
:: Parse the command line arguments.
|
|
if "%1" == "" (
|
|
set /p ARCH="Please enter an Architecture you want to build ReactOS for: "
|
|
|
|
if "!ARCH!" == "" (
|
|
echo ERROR: You must enter an Architecture.
|
|
goto :EOC
|
|
)
|
|
) else (
|
|
set ARCH=%1
|
|
)
|
|
|
|
:: Modify ROS_ARCH for the current environment
|
|
endlocal & set ROS_ARCH=%ARCH%
|
|
|
|
:: Refresh all needed Params by recalling the main Path setting CMD File.
|
|
if "%ROS_ARCH%" == "i386" (
|
|
if exist "%APPDATA%\RosBE\rosbe-options.cmd" (
|
|
call "%APPDATA%\RosBE\rosbe-options.cmd"
|
|
)
|
|
) else (
|
|
if exist "%APPDATA%\RosBE\rosbe-options-%ROS_ARCH%.cmd" (
|
|
call "%APPDATA%\RosBE\rosbe-options-%ROS_ARCH%.cmd"
|
|
)
|
|
)
|
|
|
|
call "%_ROSBE_BASEDIR%\chdefgcc.cmd" %ROS_ARCH% target
|
|
|
|
:EOC
|
|
title ReactOS Build Environment %_ROSBE_VERSION%
|