Fix a few errors in comments. Patch by Fujii Masao, plus the one in
[PostgreSQL.git] / src / tools / msvc / install.bat
blob15f1560e9dcd9c8328d12b11e5c3fb328693eb01
1 @echo off
2 REM $PostgreSQL$
4 if NOT "%1"=="" GOTO RUN_INSTALL
6 echo Invalid command line options.
7 echo Usage: "install.bat <path>"
8 echo.
9 REM exit fix for pre-2003 shell especially if used on buildfarm
10 if "%XP_EXIT_FIX%" == "yes" exit 1
11 exit /b 1
13 :RUN_INSTALL
15 SETLOCAL
17 IF NOT EXIST buildenv.pl goto nobuildenv
18 perl -e "require 'buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
19 CALL bldenv.bat
20 del bldenv.bat
21 :nobuildenv 
23 perl install.pl "%1"
25 REM exit fix for pre-2003 shell especially if used on buildfarm
26 if "%XP_EXIT_FIX%" == "yes" exit %ERRORLEVEL%
27 exit /b %ERRORLEVEL%