Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2b8a795

Browse files
committed
Add multi-line flag to regex that needs it. Backpatch to 8.2. Fix from Andreas Zeugswetter
1 parent 1e40da4 commit 2b8a795

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/msvc/Project.pm

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Project;
33
#
44
# Package that encapsulates a Visual C++ project file generation
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.18 2008/02/19 16:15:14 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.19 2008/04/15 16:22:36 adunstan Exp $
77
#
88
use Carp;
99
use strict;
@@ -259,7 +259,8 @@ sub AddDir
259259
}
260260

261261
# Match rules that pull in source files from different directories
262-
my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$};
262+
# example: pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
263+
my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$}m;
263264
while ($mf =~ m{$replace_re}m)
264265
{
265266
my $match = $1;

0 commit comments

Comments
 (0)