MSVC installation wrapper script - Mailing list pgsql-patches

From Dave Page
Subject MSVC installation wrapper script
Date
Msg-id 46372577.6090603@postgresql.org
Whole thread Raw
Responses Re: MSVC installation wrapper script  (Magnus Hagander <magnus@hagander.net>)
List pgsql-patches
Per previous discussion with Magnus, the attached batch file (rename to
install.bat) is a wrapper script for the MSVC installer. It sets up the
environment before installing (to allow zic.exe to run properly), and
removes the need to explicitly call perl on the command line.

This should be added to src/tools/msvc

Regards, Dave.
@echo off
REM $PostgreSQL$

if NOT "%1"=="" GOTO RUN_INSTALL

echo Invalid command line options.
echo Usage: "install.bat <path>"
echo.
exit /b 1

:RUN_INSTALL

SETLOCAL
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
if exist buildenv.bat call buildenv.bat

perl install.pl "%1"

exit /b %ERRORLEVEL%

pgsql-patches by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: plpgpsm
Next
From: Magnus Hagander
Date:
Subject: Re: MSVC installation wrapper script