diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-08 13:51:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-08 13:51:21 +0200 |
commit | c9be1347aed9bca396606d8f0c93bedc4f4706a8 (patch) | |
tree | 459ccef0ebf095874a16dd50fb365fb6597cbb5c /bdep/utility.cxx | |
parent | f599f30ee51c8a6f796d5b9a35e8e17ee54333ee (diff) |
Add support for bdep-new --subdirectory mode, no-version -t=lib sub-option
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r-- | bdep/utility.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx index 8caedc6..a04507a 100644 --- a/bdep/utility.cxx +++ b/bdep/utility.cxx @@ -138,6 +138,22 @@ namespace bdep } void + mk_p (const dir_path& d) + { + if (verb >= 3) + text << "mkdir -p " << d; + + try + { + try_mkdir_p (d); + } + catch (const system_error& e) + { + fail << "unable to create directory " << d << ": " << e; + } + } + + void rm (const path& f, uint16_t v) { if (verb >= v) |