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:23:21 +0000 (16:23 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 15 Apr 2008 16:23:21 +0000 (16:23 +0000)
src/tools/msvc/Project.pm

index 14ae7a8052f3c7406b0381096a3c97d04f4b8245..2c3b9d1372e0d95a8a49e945ddfb1cc0870cf256 100644 (file)
@@ -256,7 +256,8 @@ sub AddDir
     }
 
     # Match rules that pull in source files from different directories
-    my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$};
+    # example: pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
+    my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$}m;
     while ($mf =~ m{$replace_re}m)
     {
         my $match = $1;