aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bash/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/bash/init.cxx')
-rw-r--r--libbuild2/bash/init.cxx28
1 files changed, 12 insertions, 16 deletions
diff --git a/libbuild2/bash/init.cxx b/libbuild2/bash/init.cxx
index dc1f8f6..ed84265 100644
--- a/libbuild2/bash/init.cxx
+++ b/libbuild2/bash/init.cxx
@@ -64,25 +64,21 @@ namespace build2
// Register rules.
//
- {
- auto& r (bs.rules);
-
- r.insert<exe> (perform_update_id, "bash.in", in_rule_);
- r.insert<exe> (perform_clean_id, "bash.in", in_rule_);
- r.insert<exe> (configure_update_id, "bash.in", in_rule_);
+ bs.insert_rule<exe> (perform_update_id, "bash.in", in_rule_);
+ bs.insert_rule<exe> (perform_clean_id, "bash.in", in_rule_);
+ bs.insert_rule<exe> (configure_update_id, "bash.in", in_rule_);
- r.insert<bash> (perform_update_id, "bash.in", in_rule_);
- r.insert<bash> (perform_clean_id, "bash.in", in_rule_);
- r.insert<bash> (configure_update_id, "bash.in", in_rule_);
+ bs.insert_rule<bash> (perform_update_id, "bash.in", in_rule_);
+ bs.insert_rule<bash> (perform_clean_id, "bash.in", in_rule_);
+ bs.insert_rule<bash> (configure_update_id, "bash.in", in_rule_);
- if (install_loaded)
- {
- r.insert<exe> (perform_install_id, "bash.install", install_rule_);
- r.insert<exe> (perform_uninstall_id, "bash.uninstall", install_rule_);
+ if (install_loaded)
+ {
+ bs.insert_rule<exe> (perform_install_id, "bash.install", install_rule_);
+ bs.insert_rule<exe> (perform_uninstall_id, "bash.uninstall", install_rule_);
- r.insert<bash> (perform_install_id, "bash.install", install_rule_);
- r.insert<bash> (perform_uninstall_id, "bash.uninstall", install_rule_);
- }
+ bs.insert_rule<bash> (perform_install_id, "bash.install", install_rule_);
+ bs.insert_rule<bash> (perform_uninstall_id, "bash.uninstall", install_rule_);
}
return true;