aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-09 16:21:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-09 16:21:14 +0200
commitd369ab42f2d3bc52086dc7d9b79510dce5e80513 (patch)
tree504d1f694804b115b71d858cfe8e6b44fde5770e /bdep/utility.cxx
parentd304762e4338b4a055e2be018205a00c2ca9ee2f (diff)
Add support for executing bpkg
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r--bdep/utility.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx
index 0ed41b9..f8ef1df 100644
--- a/bdep/utility.cxx
+++ b/bdep/utility.cxx
@@ -26,6 +26,8 @@ namespace bdep
const path repositories_file ("repositories.manifest");
const path configurations_file ("configurations.manifest");
+ dir_path exec_dir;
+
bool
exists (const path& f, bool ignore_error)
{
@@ -98,5 +100,11 @@ namespace bdep
}
}
- dir_path exec_dir;
+ const char*
+ name_bpkg (const common_options& co)
+ {
+ return co.bpkg_specified ()
+ ? co.bpkg ().string ().c_str ()
+ : "bpkg" BDEP_EXE_SUFFIX;
+ }
}