postgresql/src/tools/msvc/install.pl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
732 B
Perl
Raw Normal View History

# Copyright (c) 2021-2023, PostgreSQL Global Development Group
#
# Script that provides 'make install' functionality for msvc builds
#
2010-09-20 22:08:53 +02:00
# src/tools/msvc/install.pl
#
2006-11-29 20:49:31 +01:00
use strict;
use warnings;
use FindBin;
use lib $FindBin::RealBin;
use Install qw(Install);
2006-11-29 20:49:31 +01:00
# 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";
}
2006-11-29 20:49:31 +01:00
my $target = shift || Usage();
my $insttype = shift;
Install($target, $insttype);
2006-11-29 20:49:31 +01:00
sub Usage
{
print "Usage: install.pl <targetdir> [installtype]\n";
print "installtype: client\n";
exit(1);
2006-11-29 20:49:31 +01:00
}