From c9be1347aed9bca396606d8f0c93bedc4f4706a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Mar 2019 13:51:21 +0200 Subject: Add support for bdep-new --subdirectory mode, no-version -t=lib sub-option --- bdep/utility.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'bdep/utility.cxx') 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) -- cgit v1.1