diff options
Diffstat (limited to 'libbuild2/version')
-rw-r--r-- | libbuild2/version/init.cxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libbuild2/version/init.cxx b/libbuild2/version/init.cxx index 3ab3621..ea4c71a 100644 --- a/libbuild2/version/init.cxx +++ b/libbuild2/version/init.cxx @@ -342,18 +342,14 @@ namespace build2 // Register rules. // - { - auto& r (rs.rules); - - r.insert<file> (perform_update_id, "version.in", in_rule_); - r.insert<file> (perform_clean_id, "version.in", in_rule_); - r.insert<file> (configure_update_id, "version.in", in_rule_); + rs.insert_rule<file> (perform_update_id, "version.in", in_rule_); + rs.insert_rule<file> (perform_clean_id, "version.in", in_rule_); + rs.insert_rule<file> (configure_update_id, "version.in", in_rule_); - if (cast_false<bool> (rs["install.booted"])) - { - r.insert<manifest> ( - perform_install_id, "version.manifest", manifest_install_rule_); - } + if (cast_false<bool> (rs["install.booted"])) + { + rs.insert_rule<manifest> ( + perform_install_id, "version.manifest", manifest_install_rule_); } return true; |