]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/configure.pm
Update copyright headers.
[user/henk/code/inspircd.git] / make / configure.pm
index fd7d156900baf3a1c56362eb9eb0930d4cf64dc1..a49ad13186f864995e2c5c36e649530b929df3cc 100644 (file)
@@ -2,7 +2,7 @@
 # InspIRCd -- Internet Relay Chat Daemon
 #
 #   Copyright (C) 2020 Nicole Kleinhoff <ilbelkyr@shalture.org>
-#   Copyright (C) 2013-2020 Sadie Powell <sadie@witchery.services>
+#   Copyright (C) 2013-2021 Sadie Powell <sadie@witchery.services>
 #   Copyright (C) 2012 Robby <robby@chatbelgie.be>
 #   Copyright (C) 2007-2008 Craig Edwards <brain@inspircd.org>
 #   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
@@ -65,8 +65,6 @@ sub __get_socketengines {
        return @socketengines;
 }
 
-# TODO: when buildtool is done this can be mostly removed with
-#       the remainder being merged into parse_templates.
 sub __get_template_settings($$$) {
 
        # These are actually hash references
@@ -205,7 +203,7 @@ sub run_test($$;$) {
        my ($what, $result, $adjective) = @_;
        $adjective //= 'available';
        print console_format "Checking whether <|GREEN $what|> is $adjective ... ";
-       say console_format $result ? "<|GREEN yes|>" : "<|RED no|>";
+       say console_format($result ? "<|GREEN yes|>" : "<|RED no|>");
        return $result;
 }
 
@@ -237,7 +235,8 @@ sub module_expand($) {
 
 sub module_shrink($) {
        my $module = basename shift;
-       return $module =~ s/(?:^m_|\.cpp$)//gr;
+       $module =~ s/(?:^m_|\.cpp$)//g;
+       return $module;
 }
 
 sub write_configure_cache(%) {