am 9514fca5: merge from open-source master

Merge commit '9514fca5c78c85b6f5e2d2497b05bbea2613daa8' into kraken

* commit '9514fca5c78c85b6f5e2d2497b05bbea2613daa8':
  Support absolute path, in OUT_DIR
  Updated to better distinguish between options and operands
This commit is contained in:
The Android Open Source Project 2010-05-14 13:43:29 -07:00 committed by Android Git Automerger
commit 105a934f3b

View file

@ -108,6 +108,10 @@ mkdir_recursively(const string& path)
{
int err;
size_t pos = 0;
// For absolute pathnames, that starts with leading '/'
// use appropriate initial value.
if (path.length() != 0 and path[0] == '/') pos++;
while (true) {
pos = path.find('/', pos);
string p = path.substr(0, pos);