Author: dreimer
Date: Mon Jun 7 15:22:48 2010
New Revision: 47657
URL:
http://svn.reactos.org/svn/reactos?rev=47657&view=rev
Log:
Cleanup of the options tool code. By Christoph von Wittich.
Modified:
trunk/tools/RosBE/RosBE-Windows/Tools/config/x86/options.c
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/config/x86/options.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/co…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/config/x86/options.c [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/config/x86/options.c [iso-8859-1] Mon Jun 7
15:22:48 2010
@@ -226,22 +226,8 @@
fwprintf(pFilecmd, L"color %X%X\n", background, foreground);
fwprintf(pFilecmd, L"set _ROSBE_SHOWTIME=%d\n", showtime);
fwprintf(pFilecmd, L"set _ROSBE_USECCACHE=%d\n", useccache);
- if (strip == 1)
- {
- fwprintf(pFilecmd, L"set ROS_LEAN_AND_MEAN=yes\n");
- }
- else
- {
- fwprintf(pFilecmd, L"set ROS_LEAN_AND_MEAN=no\n");
- }
- if (nostrip == 1)
- {
- fwprintf(pFilecmd, L"set ROS_BUILDNOSTRIP=yes\n");
- }
- else
- {
- fwprintf(pFilecmd, L"set ROS_BUILDNOSTRIP=no\n");
- }
+ fwprintf(pFilecmd, L"set ROS_LEAN_AND_MEAN=%s\n", (strip == 1) ?
"yes" : "no");
+ fwprintf(pFilecmd, L"set ROS_BUILDNOSTRIP=%s\n", (nostrip == 1) ?
"yes" : "no");
fwprintf(pFilecmd, L"set _ROSBE_WRITELOG=%d\n", writelog);
fwprintf(pFilecmd, L"set _ROSBE_SHOWVERSION=%d\n", showversion);
if (logdir[0] != 0)
@@ -285,22 +271,8 @@
fwprintf(pFileps1, L"clear-host\n");
fwprintf(pFileps1, L"$global:_ROSBE_SHOWTIME = %d\n", showtime);
fwprintf(pFileps1, L"$global:_ROSBE_USECCACHE = %d\n", useccache);
- if (strip == 1)
- {
- fwprintf(pFileps1, L"$ENV:ROS_LEAN_AND_MEAN =
\"yes\"\n");
- }
- else
- {
- fwprintf(pFileps1, L"$ENV:ROS_LEAN_AND_MEAN =
\"no\"\n");
- }
- if (nostrip == 1)
- {
- fwprintf(pFileps1, L"$ENV:ROS_BUILDNOSTRIP =
\"yes\"\n");
- }
- else
- {
- fwprintf(pFileps1, L"$ENV:ROS_BUILDNOSTRIP = \"no\"\n");
- }
+ fwprintf(pFilecmd, L"$ENV:ROS_LEAN_AND_MEAN=\"%s\"\n", (strip == 1)
? "yes" : "no");
+ fwprintf(pFilecmd, L"$ENV:ROS_BUILDNOSTRIP=\"%s\"\n",
(nostrip == 1) ? "yes" : "no");
fwprintf(pFileps1, L"$global:_ROSBE_WRITELOG = %d\n", writelog);
fwprintf(pFileps1, L"$global:_ROSBE_SHOWVERSION = %d\n", showversion);
if (logdir[0] != 0)