aboutsummaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-06-24 19:23:12 +0100
committerGravatar Sadie Powell2024-06-24 19:23:12 +0100
commit0482a13752b36d7407aef719b09fa9720d2b5744 (patch)
tree52d31a9317dedfd1bdc3a1a297d8fd1426936316 /modulemanager
parentMove module_{expand,shrink} to make::common. (diff)
When a user installs a contrib module tell them how to load it.
Diffstat (limited to 'modulemanager')
-rwxr-xr-xmodulemanager7
1 files changed, 7 insertions, 0 deletions
diff --git a/modulemanager b/modulemanager
index da907932b..480038f7a 100755
--- a/modulemanager
+++ b/modulemanager
@@ -40,6 +40,7 @@ use FindBin qw($RealDir);
use lib $RealDir;
use make::common;
use make::console;
+use make::directive;
my %installed;
# $installed{name} = $version
@@ -335,6 +336,12 @@ for my $mod (sort keys %todo) {
print MF $response->content;
close(MF);
print " - done\n";
+
+ say "You can add this module to your config with:";
+ say " <module name=\"" . module_shrink($mod) . "\">";
+ for my $tag (get_directives("$RealDir/src/modules/$mod.cpp", 'ModConfig')) {
+ say " $tag" if $tag;
+ }
} else {
printf "\nHTTP %s: %s\n", $response->code, $response->message;
}