remove single "." entries from paths
Modified: trunk/reactos/tools/rbuild/XML.cpp
_____
Modified: trunk/reactos/tools/rbuild/XML.cpp
--- trunk/reactos/tools/rbuild/XML.cpp 2005-08-28 12:18:13 UTC (rev
17584)
+++ trunk/reactos/tools/rbuild/XML.cpp 2005-08-28 12:23:37 UTC (rev
17585)
@@ -223,12 +223,15 @@
out.resize ( 0 );
while ( p )
{
- out.push_back ( prev );
+ if ( strcmp ( prev, "." ) )
+ out.push_back ( prev );
prev = p;
p = strtok ( NULL, "/\\" );
}
if ( include_last )
out.push_back ( prev );
+ if ( out.back() == "." )
+ out.pop_back();
}
XMLFile::XMLFile()
Show replies by date