From c0105aad0074aee0efb3ba41f8132496412f8790 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Jan 2020 08:11:16 +0200 Subject: Use scope::insert_rule() --- libbuild2/bash/init.cxx | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'libbuild2/bash') 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 (perform_update_id, "bash.in", in_rule_); - r.insert (perform_clean_id, "bash.in", in_rule_); - r.insert (configure_update_id, "bash.in", in_rule_); + bs.insert_rule (perform_update_id, "bash.in", in_rule_); + bs.insert_rule (perform_clean_id, "bash.in", in_rule_); + bs.insert_rule (configure_update_id, "bash.in", in_rule_); - r.insert (perform_update_id, "bash.in", in_rule_); - r.insert (perform_clean_id, "bash.in", in_rule_); - r.insert (configure_update_id, "bash.in", in_rule_); + bs.insert_rule (perform_update_id, "bash.in", in_rule_); + bs.insert_rule (perform_clean_id, "bash.in", in_rule_); + bs.insert_rule (configure_update_id, "bash.in", in_rule_); - if (install_loaded) - { - r.insert (perform_install_id, "bash.install", install_rule_); - r.insert (perform_uninstall_id, "bash.uninstall", install_rule_); + if (install_loaded) + { + bs.insert_rule (perform_install_id, "bash.install", install_rule_); + bs.insert_rule (perform_uninstall_id, "bash.uninstall", install_rule_); - r.insert (perform_install_id, "bash.install", install_rule_); - r.insert (perform_uninstall_id, "bash.uninstall", install_rule_); - } + bs.insert_rule (perform_install_id, "bash.install", install_rule_); + bs.insert_rule (perform_uninstall_id, "bash.uninstall", install_rule_); } return true; -- cgit v1.1