diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-28 08:11:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-28 08:11:16 +0200 |
commit | c0105aad0074aee0efb3ba41f8132496412f8790 (patch) | |
tree | 30fe24cfe2e63c7cacdd7d45d875ca75f35bede2 /libbuild2/version | |
parent | 36fa3bc49a739a3bb1212a1b37fd2c817d4ee1dc (diff) |
Use scope::insert_rule()
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; |