mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Make all msvc build scripts use buildenv.pl, not buildenv.bat.
Andrew Dunstan
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
@echo off
|
||||
REM Adjust path for your docbook installation in buildenv.bat
|
||||
REM Adjust path for your docbook installation in buildenv.pl
|
||||
|
||||
REM $PostgreSQL: pgsql/src/tools/msvc/builddoc.bat,v 1.5 2007/03/17 14:01:01 mha Exp $
|
||||
REM $PostgreSQL: pgsql/src/tools/msvc/builddoc.bat,v 1.6 2007/12/19 12:29:36 mha Exp $
|
||||
|
||||
SETLOCAL
|
||||
SET STARTDIR=%CD%
|
||||
@ -10,7 +10,12 @@ SET DSSSL=docbook-dsssl-1.79
|
||||
|
||||
IF EXIST ..\msvc IF EXIST ..\..\..\src cd ..\..\..
|
||||
IF NOT EXIST doc\src\sgml\version.sgml goto noversion
|
||||
IF EXIST src\tools\msvc\buildenv.bat CALL src\tools\msvc\buildenv.bat
|
||||
|
||||
IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv
|
||||
perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
|
||||
CALL bldenv.bat
|
||||
del bldenv.bat
|
||||
:nobuildenv
|
||||
|
||||
IF NOT EXIST %DOCROOT%\%OPENJADE% SET NF=OpenJade
|
||||
IF NOT EXIST %DOCROOT%\docbook SET NF=docbook
|
||||
|
@ -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"
|
||||
|
||||
|
@ -1,7 +1,11 @@
|
||||
@echo off
|
||||
REM $PostgreSQL: pgsql/src/tools/msvc/pgbison.bat,v 1.7 2007/07/07 07:43:21 mha Exp $
|
||||
REM $PostgreSQL: pgsql/src/tools/msvc/pgbison.bat,v 1.8 2007/12/19 12:29:36 mha Exp $
|
||||
|
||||
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
|
||||
IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv
|
||||
perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
|
||||
CALL bldenv.bat
|
||||
del bldenv.bat
|
||||
:nobuildenv
|
||||
|
||||
SET BV=
|
||||
for /F "tokens=4 usebackq" %%f in (`bison -V`) do if "!BV!"=="" SET BV=%%f
|
||||
|
@ -1,7 +1,11 @@
|
||||
@echo off
|
||||
REM $PostgreSQL: pgsql/src/tools/msvc/pgflex.bat,v 1.4 2007/03/17 14:01:01 mha Exp $
|
||||
REM $PostgreSQL: pgsql/src/tools/msvc/pgflex.bat,v 1.5 2007/12/19 12:29:36 mha Exp $
|
||||
|
||||
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
|
||||
IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv
|
||||
perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
|
||||
CALL bldenv.bat
|
||||
del bldenv.bat
|
||||
:nobuildenv
|
||||
|
||||
flex -V > NUL
|
||||
if errorlevel 1 goto noflex
|
||||
|
Reference in New Issue
Block a user