summaryrefslogtreecommitdiff
path: root/src/tools/msvc/install.bat
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2007-12-19 12:29:36 +0000
committerMagnus Hagander <magnus@hagander.net>2007-12-19 12:29:36 +0000
commit0a6ac0085c38946c43344652ae3409193561deaf (patch)
tree8c5cd350ce759eb7e40edf6077c084acb594d1ee /src/tools/msvc/install.bat
parent3f2b1db240f240180eb2357e75382b50d9183958 (diff)
downloadpostgresql-0a6ac0085c38946c43344652ae3409193561deaf.tar.gz
Make all msvc build scripts use buildenv.pl, not buildenv.bat.
Andrew Dunstan
Diffstat (limited to 'src/tools/msvc/install.bat')
-rw-r--r--src/tools/msvc/install.bat9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/msvc/install.bat b/src/tools/msvc/install.bat
index 3eb8e3ee81..043bc69158 100644
--- a/src/tools/msvc/install.bat
+++ b/src/tools/msvc/install.bat
@@ -1,5 +1,5 @@
@echo off
-REM $PostgreSQL: pgsql/src/tools/msvc/install.bat,v 1.2 2007/06/26 11:43:56 mha Exp $
+REM $PostgreSQL: pgsql/src/tools/msvc/install.bat,v 1.3 2007/12/19 12:29:36 mha Exp $
if NOT "%1"=="" GOTO RUN_INSTALL
@@ -13,7 +13,12 @@ exit /b 1
:RUN_INSTALL
SETLOCAL
-if exist buildenv.bat call buildenv.bat
+
+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
perl install.pl "%1"