Skip to content

Commit 6cc0213

Browse files
committed
Properly set MODULE_PATHNAME based on module name instead of incorrectly based
on directory name. Fixes the generation of .sql files in contrib/spi. Per complaint from Dave Page.
1 parent 85a3fce commit 6cc0213

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/msvc/Mkvcbuild.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Mkvcbuild;
33
#
44
# Package that generates build files for msvc build
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.10 2007/04/26 14:09:12 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.11 2007/04/27 16:45:54 mha Exp $
77
#
88
use Carp;
99
use Win32;
@@ -448,7 +448,8 @@ sub GenerateContribSqlFiles
448448
{
449449
print "Building $out from $in (contrib/$n)...\n";
450450
my $cont = Project::read_file("contrib/$n/$in");
451-
my $dn = $n;
451+
my $dn = $out;
452+
$dn =~ s/\.sql$//;
452453
if ($mf =~ /^MODULE_big\s*=\s*(.*)$/m) { $dn = $1 }
453454
$cont =~ s/MODULE_PATHNAME/\$libdir\/$dn/g;
454455
my $o;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy