aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-17 15:34:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-17 15:34:29 +0200
commit42aa67fccf593eb8352733aed1bd3ac1f26110dc (patch)
tree1810ad7ff20dcac8e8f56ab9a938530ef3bf7e92
parent3c0bf7825ce2aaa8f0c5a29757ce61bbbba40b5c (diff)
Tune buildspec heuristics
-rw-r--r--build/b.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 8ba4eb0..01ca248 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -358,11 +358,14 @@ main (int argc, char* argv[])
//
if (v.empty () || v == "." || v == ".." || tn.type == "dir")
out_base = dir_path (v);
- else
+ //
+ // Otherwise, if this is a simple name, see if there is a
+ // directory part in value.
+ //
+ else if (tn.type.empty ())
{
- // See if there is a directory part in value. We cannot
- // assume it is a valid filesystem name so we will have
- // to do the splitting manually.
+ // We cannot assume it is a valid filesystem name so we
+ // will have to do the splitting manually.
//
path::size_type i (path::traits::rfind_separator (v));