Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
01ff8dd7
Commit
01ff8dd7
authored
Feb 14, 2011
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC build scripts for recent extension-related changes.
Untested, but we'll soon see if the buildfarm likes this.
parent
555353c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
src/tools/msvc/Install.pm
src/tools/msvc/Install.pm
+31
-6
No files found.
src/tools/msvc/Install.pm
View file @
01ff8dd7
...
@@ -56,8 +56,10 @@ sub Install
...
@@ -56,8 +56,10 @@ sub Install
my
$majorver
=
DetermineMajorVersion
();
my
$majorver
=
DetermineMajorVersion
();
print
"
Installing version
$majorver
for
$conf
in
$target
\n
";
print
"
Installing version
$majorver
for
$conf
in
$target
\n
";
EnsureDirectories
(
$target
,
'
bin
','
lib
','
share
','
share/timezonesets
','
share/contrib
','
doc
',
EnsureDirectories
(
$target
,
'
bin
',
'
lib
',
'
share
',
'
share/timezonesets
',
'
doc/contrib
',
'
symbols
',
'
share/tsearch_data
');
'
share/extension
',
'
share/contrib
',
'
doc
',
'
doc/extension
',
'
doc/contrib
',
'
symbols
',
'
share/tsearch_data
');
CopySolutionOutput
(
$conf
,
$target
);
CopySolutionOutput
(
$conf
,
$target
);
lcopy
(
$target
.
'
/lib/libpq.dll
',
$target
.
'
/bin/libpq.dll
');
lcopy
(
$target
.
'
/lib/libpq.dll
',
$target
.
'
/bin/libpq.dll
');
...
@@ -316,7 +318,27 @@ sub CopyContribFiles
...
@@ -316,7 +318,27 @@ sub CopyContribFiles
my
$mf
= read_file(
"
contrib
/$d/
Makefile
"
);
my
$mf
= read_file(
"
contrib
/$d/
Makefile
"
);
$mf
=~ s{
\\
s*[
\r\n
]+}{}mg;
$mf
=~ s{
\\
s*[
\r\n
]+}{}mg;
# Note: we currently don't support setting MODULEDIR in the makefile
my
$moduledir
= 'contrib';
my
$flist
= '';
my
$flist
= '';
if (
$mf
=~ /^EXTENSION
\
s*=
\
s*(.*)$/m) {
$flist
.= $1}
if (
$flist
ne '')
{
$moduledir
= 'extension';
$flist
= ParseAndCleanRule(
$flist
,
$mf
);
foreach my
$f
(split /
\
s+/,
$flist
)
{
lcopy('contrib/' .
$d
. '/' .
$f
. '.control',
$target
. '/share/extension/' .
$f
. '.control')
|| croak(
"
Could
not
copy
file
$f
.
control
in
contrib
$d
"
);
print '.';
}
}
$flist
= '';
if (
$mf
=~ /^DATA_built
\
s*=
\
s*(.*)$/m) {
$flist
.= $1}
if (
$mf
=~ /^DATA_built
\
s*=
\
s*(.*)$/m) {
$flist
.= $1}
if (
$mf
=~ /^DATA
\
s*=
\
s*(.*)$/m) {
$flist
.=
"
$1
"
}
if (
$mf
=~ /^DATA
\
s*=
\
s*(.*)$/m) {
$flist
.=
"
$1
"
}
$flist
=~ s/^
\
s*//; # Remove leading spaces if we had only DATA_built
$flist
=~ s/^
\
s*//; # Remove leading spaces if we had only DATA_built
...
@@ -327,7 +349,8 @@ sub CopyContribFiles
...
@@ -327,7 +349,8 @@ sub CopyContribFiles
foreach my
$f
(split /
\
s+/,
$flist
)
foreach my
$f
(split /
\
s+/,
$flist
)
{
{
lcopy('contrib/' .
$d
. '/' .
$f
,
$target
. '/share/contrib/' . basename(
$f
))
lcopy('contrib/' .
$d
. '/' .
$f
,
$target
. '/share/' .
$moduledir
. '/' . basename(
$f
))
|| croak(
"
Could
not
copy
file
$f
in
contrib
$d
"
);
|| croak(
"
Could
not
copy
file
$f
in
contrib
$d
"
);
print '.';
print '.';
}
}
...
@@ -341,7 +364,8 @@ sub CopyContribFiles
...
@@ -341,7 +364,8 @@ sub CopyContribFiles
foreach my
$f
(split /
\
s+/,
$flist
)
foreach my
$f
(split /
\
s+/,
$flist
)
{
{
lcopy('contrib/' .
$d
. '/' .
$f
,
$target
. '/share/tsearch_data/' . basename(
$f
))
lcopy('contrib/' .
$d
. '/' .
$f
,
$target
. '/share/tsearch_data/' . basename(
$f
))
|| croak(
"
Could
not
copy
file
$f
in
contrib
$d
"
);
|| croak(
"
Could
not
copy
file
$f
in
contrib
$d
"
);
print '.';
print '.';
}
}
...
@@ -359,7 +383,8 @@ sub CopyContribFiles
...
@@ -359,7 +383,8 @@ sub CopyContribFiles
if (
$d
eq 'spi');
if (
$d
eq 'spi');
foreach my
$f
(split /
\
s+/,
$flist
)
foreach my
$f
(split /
\
s+/,
$flist
)
{
{
lcopy('contrib/' .
$d
. '/' .
$f
,
$target
. '/doc/contrib/' .
$f
)
lcopy('contrib/' .
$d
. '/' .
$f
,
$target
. '/doc/' .
$moduledir
. '/' .
$f
)
|| croak(
"
Could
not
copy
file
$f
in
contrib
$d
"
);
|| croak(
"
Could
not
copy
file
$f
in
contrib
$d
"
);
print '.';
print '.';
}
}
...
@@ -430,7 +455,7 @@ sub CopyIncludeFiles
...
@@ -430,7 +455,7 @@ sub CopyIncludeFiles
'src/include/', 'pg_config.h', 'pg_config_os.h'
'src/include/', 'pg_config.h', 'pg_config_os.h'
);
);
CopyFiles('Grammar header',
$target
. '/include/server/parser/',
CopyFiles('Grammar header',
$target
. '/include/server/parser/',
'src/backend/parser/', 'gram.h');
'src/backend/parser/', 'gram.h');
CopySetOfFiles('',[ glob(
"
src
\\
include
\\*.
h
"
) ],
$target
. '/include/server/');
CopySetOfFiles('',[ glob(
"
src
\\
include
\\*.
h
"
) ],
$target
. '/include/server/');
my
$D
;
my
$D
;
opendir(
$D
, 'src/include') || croak
"
Could
not
opendir
on
src
/
include
!\
n
"
;
opendir(
$D
, 'src/include') || croak
"
Could
not
opendir
on
src
/
include
!\
n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment