aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r--bdep/utility.cxx16
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)