]> granicus.if.org Git - postgresql/commitdiff
Add multi-line flag to regex that needs it. Backpatch to 8.2. Fix from Andreas Zeugsw...
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 15 Apr 2008 16:28:25 +0000 (16:28 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 15 Apr 2008 16:28:25 +0000 (16:28 +0000)
src/tools/msvc/Project.pm

index 47ec46fbde17fe8442372a71bc42eb7bfb36ce0d..5578b61f76877d4ad902f3db242b639882eb60df 100644 (file)
@@ -184,7 +184,7 @@ sub AddDir {
        }
 
 # Match rules that pull in source files from different directories
-       my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$};
+       my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$}m;
        while ($mf =~ m{$replace_re}m) {
                my $match = $1;
                my $top = $2;