Skip to content

Commit a1e7072

Browse files
committed
Changed regular expressions for configure parsing in windows build to properly parse PostgresPro and four-digit version
1 parent 1a1c602 commit a1e7072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/msvc/Solution.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ sub GenerateFiles
128128
|| confess("Could not open configure.in for reading\n");
129129
while (<C>)
130130
{
131-
if (/^AC_INIT\(\[PostgreSQL\], \[([^\]]+)\]/)
131+
if (/^AC_INIT\(\[PostgresPro\], \[([^\]]+)\]/)
132132
{
133133
$self->{strver} = $1;
134-
if ($self->{strver} !~ /^(\d+)\.(\d+)(?:\.(\d+))?/)
134+
if ($self->{strver} !~ /^(\d+)\.(\d+)(?:\.(\d+))*/)
135135
{
136136
confess "Bad format of version: $self->{strver}\n";
137137
}

0 commit comments

Comments
 (0)