From bf3d969ef2dbc615bd528f559920bcf532dda910 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 15 Dec 2018 14:45:24 +0200 Subject: Implement bdep-release that manages project's version during release --- bdep/project.hxx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'bdep/project.hxx') diff --git a/bdep/project.hxx b/bdep/project.hxx index e508374..c252ead 100644 --- a/bdep/project.hxx +++ b/bdep/project.hxx @@ -205,11 +205,26 @@ namespace bdep package_locations packages; }; + // Search project packages in the specified directories or the current + // directory if none were specified. + // project_packages - find_project_packages (const project_options&, + find_project_packages (const dir_paths&, bool ignore_packages, bool load_packages = true); + inline project_packages + find_project_packages (const project_options& po, bool ip, bool lp = true) + { + return find_project_packages (po.directory (), ip, lp); + } + + inline dir_path + find_project (const dir_paths& dirs) + { + return find_project_packages (dirs, true /* ignore_packages */).project; + } + inline dir_path find_project (const project_options& o) { -- cgit v1.1