Don't hardcode "Reactos.xml" name
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp
_____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp
--- branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp
2005-04-20 15:19:09 UTC (rev 14714)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp
2005-04-20 16:01:19 UTC (rev 14715)
@@ -17,6 +17,7 @@
using std::vector;
static string BuildSystem;
+static string RootXmlFile = "ReactOS.xml";
static bool Verbose = false;
bool
@@ -28,6 +29,9 @@
case 'v':
Verbose = true;
break;
+ case 'r':
+ RootXmlFile = string(&argv[index][2]);
+ break;
default:
printf ( "Unknown switch -%c",
switchChar );
@@ -62,9 +66,10 @@
if ( !ParseArguments ( argc, argv ) )
{
printf ( "Generates project files for buildsystems\n\n"
);
- printf ( " rbuild [-v] buildsystem\n\n" );
+ printf ( " rbuild [-v] [-rfile.xml] buildsystem\n\n" );
printf ( "Switches:\n" );
printf ( " -v Be verbose\n" );
+ printf ( " -rfile.xml Name of the root xml file.
Default is ReactOS.xml\n" );
printf ( "\n" );
printf ( " buildsystem Target build system. Can be one
of:\n" );
printf ( " mingw MinGW\n" );
@@ -73,7 +78,7 @@
}
try
{
- string projectFilename ( "ReactOS.xml" );
+ string projectFilename ( RootXmlFile );
printf ( "Reading build files..." );
Project project ( projectFilename );
printf ( "done\n" );
Show replies by date