aboutsummaryrefslogtreecommitdiff
path: root/build/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-20 13:01:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-20 13:01:46 +0200
commita82cdb8fd9ba02034d296769772cdf81244da66a (patch)
tree2cd5fb0211984716780ce5fad18c19d7c4d9a794 /build/config
parentc775a7f28a56ef96f097e677434eceec9d8f2cdf (diff)
Automatically decide when to print relative/absolute paths
Diffstat (limited to 'build/config')
-rw-r--r--build/config/operation.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/build/config/operation.cxx b/build/config/operation.cxx
index ec9e4e6..3e4d64a 100644
--- a/build/config/operation.cxx
+++ b/build/config/operation.cxx
@@ -40,10 +40,7 @@ namespace build
{
path f (out_root / src_root_file);
- if (verb >= 1)
- text << "config::save_src_root " << f.string ();
- else
- text << "save " << f;
+ text << (verb ? "config::save_src_root " : "save ") << f;
try
{
@@ -71,10 +68,7 @@ namespace build
const dir_path& out_root (root.path ());
path f (out_root / config_file);
- if (verb >= 1)
- text << "config::save_config " << f.string ();
- else
- text << "save " << f;
+ text << (verb ? "config::save_config " : "save ") << f;
try
{
@@ -322,7 +316,7 @@ namespace build
{
case rmdir_status::not_empty:
{
- warn << "directory " << out_root.string () << " is "
+ warn << "directory " << out_root << " is "
<< (out_root == work
? "current working directory"
: "not empty") << ", not removing";