提交 6cc02136 编写于 作者: M Magnus Hagander

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.
上级 85a3fce9
......@@ -3,7 +3,7 @@ package Mkvcbuild;
#
# Package that generates build files for msvc build
#
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.10 2007/04/26 14:09:12 mha Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.11 2007/04/27 16:45:54 mha Exp $
#
use Carp;
use Win32;
......@@ -448,7 +448,8 @@ sub GenerateContribSqlFiles
{
print "Building $out from $in (contrib/$n)...\n";
my $cont = Project::read_file("contrib/$n/$in");
my $dn = $n;
my $dn = $out;
$dn =~ s/\.sql$//;
if ($mf =~ /^MODULE_big\s*=\s*(.*)$/m) { $dn = $1 }
$cont =~ s/MODULE_PATHNAME/\$libdir\/$dn/g;
my $o;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册