diff options
| author | 2024-06-24 19:23:12 +0100 | |
|---|---|---|
| committer | 2024-06-24 19:23:12 +0100 | |
| commit | 0482a13752b36d7407aef719b09fa9720d2b5744 (patch) | |
| tree | 52d31a9317dedfd1bdc3a1a297d8fd1426936316 /modulemanager | |
| parent | Move 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-x | modulemanager | 7 |
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; } |
