]> granicus.if.org Git - postgresql/commitdiff
Add wrapper script around install.pl that calls buildenv.bat before doing
authorMagnus Hagander <magnus@hagander.net>
Tue, 1 May 2007 20:11:14 +0000 (20:11 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 1 May 2007 20:11:14 +0000 (20:11 +0000)
the install.

Dave Page

src/tools/msvc/install.bat [new file with mode: 0644]

diff --git a/src/tools/msvc/install.bat b/src/tools/msvc/install.bat
new file mode 100644 (file)
index 0000000..a5e8574
--- /dev/null
@@ -0,0 +1,18 @@
+@echo off
+REM $PostgreSQL: pgsql/src/tools/msvc/install.bat,v 1.1 2007/05/01 20:11:14 mha Exp $
+
+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 buildenv.bat call buildenv.bat
+
+perl install.pl "%1"
+
+exit /b %ERRORLEVEL%