OSDN Git Service

8c5fb1dccbaaeaee98e22bd47b9607858a56597b
[pg-rex/syncrep.git] / src / tools / msvc / install.bat
1 @echo off
2 REM src/tools/msvc/install.bat
3
4 if NOT "%1"=="" GOTO RUN_INSTALL
5
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
12
13 :RUN_INSTALL
14
15 SETLOCAL
16
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 
22
23 perl install.pl "%1"
24
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%