1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-19 23:22:23 +03:00

Turn most vc build scripts into modules instead of scripts, and just have

skeleton scripts calling them. To make it easier for the buildfarm
(or other "outside callers") to use these modules directly.

Per suggestion from Andrew Dunstan.
This commit is contained in:
Magnus Hagander
2007-03-17 13:50:42 +00:00
parent cdf8b56d54
commit 08bb618561
8 changed files with 943 additions and 622 deletions

View File

@@ -3,6 +3,8 @@ use Carp;
use strict;
use warnings;
use Genbki;
sub new
{
my $junk = shift;
@@ -266,8 +268,11 @@ EOF
if (IsNewer('src/backend/catalog/postgres.bki', "src/include/catalog/$bki"))
{
print "Generating postgres.bki...\n";
system("perl src/tools/msvc/genbki.pl $self->{majorver} src/backend/catalog/postgres "
. join(' src/include/catalog/',@allbki));
Genbki::genbki(
$self->{majorver},
"src/backend/catalog/postgres",
split(/ /,join(' src/include/catalog/',@allbki))
);
last;
}
}