projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b121dc
)
remove single "." entries from paths
author
Royce Mitchell III
<royce3@ev1.net>
Sun, 28 Aug 2005 12:23:37 +0000
(12:23 +0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Sun, 28 Aug 2005 12:23:37 +0000
(12:23 +0000)
svn path=/trunk/; revision=17585
reactos/tools/rbuild/XML.cpp
patch
|
blob
|
history
diff --git
a/reactos/tools/rbuild/XML.cpp
b/reactos/tools/rbuild/XML.cpp
index
af1cb10
..
8300fe7
100644
(file)
--- a/
reactos/tools/rbuild/XML.cpp
+++ b/
reactos/tools/rbuild/XML.cpp
@@
-223,12
+223,15
@@
Path::Split ( vector<string>& out,
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()