diff options
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r-- | bdep/utility.cxx | 10 |
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; + } } |