From f3d3143aa67d1d038f5eee1103c2b783d54955c4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 30 Nov 2018 13:28:04 +0300 Subject: Match build configuration names, targets and machine names as paths --- mod/build-config.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mod/build-config.hxx') diff --git a/mod/build-config.hxx b/mod/build-config.hxx index e7ee9eb..a6f9902 100644 --- a/mod/build-config.hxx +++ b/mod/build-config.hxx @@ -80,6 +80,17 @@ namespace brep { return exclude (p.builds, p.constraints, c, r); } + + // Convert the build configuration name, target, machine name or their + // pattern into path, replacing dashes with slashes and double stars with + // the `*/**/*` substring for a subsequent match using our path_match() + // functionality. Throw invalid_path if the resulting path is invalid. + // + // Note that it is assumed that the match_absent path match flag will be + // used for matching for the double star replacement to make sense. + // + path + from_build_config_name (const string&); } #endif // MOD_BUILD_CONFIG_HXX -- cgit v1.1