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/install | |
parent | 36fa3bc49a739a3bb1212a1b37fd2c817d4ee1dc (diff) |
Use scope::insert_rule()
Diffstat (limited to 'libbuild2/install')
-rw-r--r-- | libbuild2/install/init.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 1054e83..98eec91 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -216,24 +216,22 @@ namespace build2 // Register our rules. // { - auto& r (bs.rules); - const auto& ar (alias_rule::instance); const auto& dr (fsdir_rule::instance); const auto& fr (file_rule::instance); const auto& gr (group_rule_); - r.insert<alias> (perform_install_id, "install.alias", ar); - r.insert<alias> (perform_uninstall_id, "uninstall.alias", ar); + bs.insert_rule<alias> (perform_install_id, "install.alias", ar); + bs.insert_rule<alias> (perform_uninstall_id, "uninstall.alias", ar); - r.insert<fsdir> (perform_install_id, "install.fsdir", dr); - r.insert<fsdir> (perform_uninstall_id, "install.fsdir", dr); + bs.insert_rule<fsdir> (perform_install_id, "install.fsdir", dr); + bs.insert_rule<fsdir> (perform_uninstall_id, "install.fsdir", dr); - r.insert<file> (perform_install_id, "install.file", fr); - r.insert<file> (perform_uninstall_id, "uninstall.file", fr); + bs.insert_rule<file> (perform_install_id, "install.file", fr); + bs.insert_rule<file> (perform_uninstall_id, "uninstall.file", fr); - r.insert<target> (perform_install_id, "install.file", gr); - r.insert<target> (perform_uninstall_id, "uninstall.file", gr); + bs.insert_rule<target> (perform_install_id, "install.file", gr); + bs.insert_rule<target> (perform_uninstall_id, "uninstall.file", gr); } // Configuration. |