#
# InspIRCd -- Internet Relay Chat Daemon
#
+# Copyright (C) 2020 Nicole Kleinhoff <ilbelkyr@shalture.org>
# Copyright (C) 2013-2020 Sadie Powell <sadie@witchery.services>
# Copyright (C) 2012 Robby <robby@chatbelgie.be>
# Copyright (C) 2007-2008 Craig Edwards <brain@inspircd.org>
our @EXPORT = qw(CONFIGURE_CACHE_FILE
CONFIGURE_CACHE_VERSION
+ CONFIGURE_DIRECTORY
cmd_clean
cmd_help
cmd_update
run_test
test_file
test_header
+ module_expand
+ module_shrink
write_configure_cache
get_compiler_info
find_compiler
will search for c++, g++, clang++ or icpc.
If you have any problems with configuring InspIRCd then visit our IRC channel
-at irc.inspircd.org #InspIRCd for support.
+at irc.inspircd.org #InspIRCd or create a support discussion at
+https://github.com/inspircd/inspircd/discussions.
+Packagers: see https://docs.inspircd.org/packaging/ for packaging advice.
EOH
exit 0;
}
return !$?;
}
+sub module_expand($) {
+ my $module = shift;
+ $module = "m_$module" unless $module =~ /^(?:m|core)_/;
+ $module = "$module.cpp" unless $module =~ /\.cpp$/;
+ return $module;
+}
+
+sub module_shrink($) {
+ my $module = basename shift;
+ return $module =~ s/(?:^m_|\.cpp$)//gr;
+}
+
sub write_configure_cache(%) {
unless (-e CONFIGURE_DIRECTORY) {
print_format "Creating <|GREEN ${\abs2rel CONFIGURE_DIRECTORY, CONFIGURE_ROOT}|> ...\n";