blob: 142d0dd17223ccd720c9fdff62933e0e6fc7dc55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright (c) 2021-2022, PostgreSQL Global Development Group
#
# Script that provides 'make install' functionality for msvc builds
#
# src/tools/msvc/install.pl
#
use strict;
use warnings;
use FindBin;
use lib $FindBin::RealBin;
use Install qw(Install);
# buildenv.pl is for specifying the build environment settings
# it should contain lines like:
# $ENV{PATH} = "c:/path/to/bison/bin;$ENV{PATH}";
if (-e "src/tools/msvc/buildenv.pl")
{
do "./src/tools/msvc/buildenv.pl";
}
elsif (-e "./buildenv.pl")
{
do "./buildenv.pl";
}
my $target = shift || Usage();
my $insttype = shift;
Install($target, $insttype);
sub Usage
{
print "Usage: install.pl <targetdir> [installtype]\n";
print "installtype: client\n";
exit(1);
}
|