From: Andrew Dunstan Date: Tue, 15 Apr 2008 16:23:21 +0000 (+0000) Subject: Add multi-line flag to regex that needs it. Backpatch to 8.2. Fix from Andreas Zeugsw... X-Git-Tag: REL8_3_2~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=990344b31bfe30933c7cab4c1a8fe0c07511b82d;p=postgresql Add multi-line flag to regex that needs it. Backpatch to 8.2. Fix from Andreas Zeugswetter --- diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 03985cd18a..56f2909804 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -3,7 +3,7 @@ package Project; # # Package that encapsulates a Visual C++ project file generation # -# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.16 2008/02/05 14:17:23 mha Exp $ +# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.16.2.1 2008/04/15 16:23:21 adunstan Exp $ # use Carp; use strict; @@ -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;