2007-05-01 22:11:14 +02:00
|
|
|
@echo off
|
2007-12-19 13:29:36 +01:00
|
|
|
REM $PostgreSQL: pgsql/src/tools/msvc/install.bat,v 1.3 2007/12/19 12:29:36 mha Exp $
|
2007-05-01 22:11:14 +02:00
|
|
|
|
|
|
|
if NOT "%1"=="" GOTO RUN_INSTALL
|
|
|
|
|
|
|
|
echo Invalid command line options.
|
|
|
|
echo Usage: "install.bat <path>"
|
|
|
|
echo.
|
2007-06-26 13:43:56 +02:00
|
|
|
REM exit fix for pre-2003 shell especially if used on buildfarm
|
|
|
|
if "%XP_EXIT_FIX%" == "yes" exit 1
|
2007-05-01 22:11:14 +02:00
|
|
|
exit /b 1
|
|
|
|
|
|
|
|
:RUN_INSTALL
|
|
|
|
|
|
|
|
SETLOCAL
|
2007-12-19 13:29:36 +01:00
|
|
|
|
|
|
|
IF NOT EXIST buildenv.pl goto nobuildenv
|
|
|
|
perl -e "require 'buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
|
|
|
|
CALL bldenv.bat
|
|
|
|
del bldenv.bat
|
|
|
|
:nobuildenv
|
2007-05-01 22:11:14 +02:00
|
|
|
|
|
|
|
perl install.pl "%1"
|
|
|
|
|
2007-06-26 13:43:56 +02:00
|
|
|
REM exit fix for pre-2003 shell especially if used on buildfarm
|
|
|
|
if "%XP_EXIT_FIX%" == "yes" exit %ERRORLEVEL%
|
2007-05-01 22:11:14 +02:00
|
|
|
exit /b %ERRORLEVEL%
|