]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add a workaround for compiling modules with Windows line endings.
authorPeter Powell <petpow@saberuk.com>
Mon, 13 Oct 2014 20:44:13 +0000 (21:44 +0100)
committerPeter Powell <petpow@saberuk.com>
Mon, 13 Oct 2014 21:04:47 +0000 (22:04 +0100)
make/configure.pm

index f877846fc15026cbde261d8e3d264faed39e19bd..9b8e2d0e4b411f8c4174686d35565f5120168f94 100644 (file)
@@ -81,7 +81,7 @@ sub getcompilerflags {
        my ($file) = @_;
        open(FLAGS, $file) or return "";
        while (<FLAGS>) {
-               if ($_ =~ /^\/\* \$CompileFlags: (.+) \*\/$/) {
+               if ($_ =~ /^\/\* \$CompileFlags: (.+) \*\/\r?$/) {
                        my $x = translate_functions($1, $file);
                        next if ($x eq "");
                        close(FLAGS);
@@ -96,7 +96,7 @@ sub getlinkerflags {
        my ($file) = @_;
        open(FLAGS, $file) or return "";
        while (<FLAGS>) {
-               if ($_ =~ /^\/\* \$LinkerFlags: (.+) \*\/$/) {
+               if ($_ =~ /^\/\* \$LinkerFlags: (.+) \*\/\r?$/) {
                        my $x = translate_functions($1, $file);
                        next if ($x eq "");
                        close(FLAGS);
@@ -111,7 +111,7 @@ sub getdependencies {
        my ($file) = @_;
        open(FLAGS, $file) or return "";
        while (<FLAGS>) {
-               if ($_ =~ /^\/\* \$ModDep: (.+) \*\/$/) {
+               if ($_ =~ /^\/\* \$ModDep: (.+) \*\/\r?$/) {
                        my $x = translate_functions($1, $file);
                        next if ($x eq "");
                        close(FLAGS);
@@ -126,7 +126,7 @@ sub nopedantic {
        my ($file) = @_;
        open(FLAGS, $file) or return "";
        while (<FLAGS>) {
-               if ($_ =~ /^\/\* \$NoPedantic \*\/$/) {
+               if ($_ =~ /^\/\* \$NoPedantic \*\/\r?$/) {
                        my $x = translate_functions($_, $file);
                        next if ($x eq "");
                        close(FLAGS);