First commit in the Direction of a Config.rbuild editor. Right now only a bunch of commands, without any real sense, but getting them made my head almost explode, so I want to have them secure.

svn path=/trunk/tools/RosBE-Windows/; revision=218
This commit is contained in:
Daniel Reimer 2007-06-10 14:08:15 +00:00
parent fd2e9b4356
commit 9ffffba802
5 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,20 @@
sed "s/\"SARCH\" value=\"\"/\"SARCH\" value=\%1"\"/g;s/\"SARCH\" value=\"xbox\"/\"SARCH\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"OPTIMIZE\" value=\"[0-5]\"/\"OPTIMIZE\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"MP\" value=\"[0-1]\"/\"MP\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"KDBG\" value=\"[0-1]\"/\"KDBG\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"DBG\" value=\"[0-1]\"/\"DBG\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"GDB\" value=\"[0-1]\"/\"GDB\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"NSWPAT\" value=\"[0-1]\"/\"NSWPAT\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"NTLPC\" value=\"[0-1]\"/\"NTLPC\" value=\"%1\"/g" config.rbuild > config2.rbuild
sed "s/\"_WINKD_\" value=\"[0-1]\"/\"_WINKD_\" value=\"%1\"/g" config.rbuild > config2.rbuild
grep SARCH config.rbuild|cut -d "\"" -f 4
grep OARCH config.rbuild|cut -d "\"" -f 4
grep OPTIMIZE config.rbuild|cut -d "\"" -f 4
grep MP config.rbuild|cut -d "\"" -f 4
grep KDBG config.rbuild|cut -d "\"" -f 4
grep DBG config.rbuild|cut -d "\"" -f 4
grep GDB config.rbuild|cut -d "\"" -f 4
grep NSWPAT config.rbuild|cut -d "\"" -f 4
grep NTLPC config.rbuild|cut -d "\"" -f 4
grep _WINKD_ config.rbuild|cut -d "\"" -f 4

View File

@ -21,6 +21,8 @@ if "%1" == "" (
echo specific command.
echo svn [OPTIONS] - Create, Update or clean up your ReactOS Source
echo tree.
echo config - Configures the way, ReactOS will be built.
echo
echo basedir - Switch back to the ReactOS source directory.
goto :EOF
)

View File

@ -42,7 +42,7 @@ http://nasm.sourceforge.net/
NSIS (Nullsoft Scriptable Install System)
http://nsis.sourceforge.net/
The GnuWin32 Project (tee/test and their dependencies were obtained here)
The GnuWin32 Project (tee/test/sed/cut/grep and their dependencies were obtained here)
http://gnuwin32.sourceforge.net/
Inspired by blight's ReactOS Build Environment v0.2-3.4.4

View File

@ -1,6 +1,7 @@
BASEDIR = cd /d "%_ROSSOURCEDIR%"
CLEAN = "%ROSBEBASEDIR%\Clean.cmd" $*
SVN = "%ROSBEBASEDIR%\SVN.cmd" $*
CONFIG = "%ROSBEBASEDIR%\Config.cmd" $*
HELP = "%ROSBEBASEDIR%\Help.cmd" $*
MAKE = "%ROSBEBASEDIR%\Build.cmd" $*
MAKEX = "%ROSBEBASEDIR%\Build-Multi.cmd" $*

View File

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<rbuild xmlns:xi="http://www.w3.org/2001/XInclude">
<property name="ARCH" value="i386" />
<property name="SARCH" value="" />
<property name="OARCH" value="pentium" />
<property name="OPTIMIZE" value="1" />
<property name="MP" value="0" />
<property name="KDBG" value="0" />
<property name="DBG" value="1" />
<property name="GDB" value="0" />
<property name="NSWPAT" value="0" />
<property name="NTLPC" value="1" />
<property name="_WINKD_" value="0" />
</rbuild>