Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0a6ac008
Commit
0a6ac008
authored
Dec 19, 2007
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make all msvc build scripts use buildenv.pl, not buildenv.bat.
Andrew Dunstan
parent
3f2b1db2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
19 deletions
+35
-19
doc/src/sgml/install-win32.sgml
doc/src/sgml/install-win32.sgml
+8
-10
src/tools/msvc/builddoc.bat
src/tools/msvc/builddoc.bat
+8
-3
src/tools/msvc/install.bat
src/tools/msvc/install.bat
+7
-2
src/tools/msvc/pgbison.bat
src/tools/msvc/pgbison.bat
+6
-2
src/tools/msvc/pgflex.bat
src/tools/msvc/pgflex.bat
+6
-2
No files found.
doc/src/sgml/install-win32.sgml
View file @
0a6ac008
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.4
3 2007/12/02 22:33:20 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.4
4 2007/12/19 12:29:36 mha
Exp $ -->
<chapter id="install-win32">
<title>Installation on <productname>Windows</productname></title>
...
...
@@ -58,12 +58,11 @@
Before you build, edit the file <filename>config.pl</filename> to reflect the
configuration options you want set, including the paths to libraries used.
If you need to set any other environment variables, create a file called
<filename>buildenv.
bat
</filename> and put the required commands there. For
<filename>buildenv.
pl
</filename> and put the required commands there. For
example, to add the path for bison when it's not in the PATH, create a file
containing:
<screen>
@ECHO OFF
SET PATH=%PATH%;c:\some\where\bison\bin
$ENV{PATH}=$ENV{PATH} . ';c:\some\where\bison\bin';
</screen>
</para>
...
...
@@ -209,10 +208,10 @@
</userinput>
</screen>
To change the default build configuration to debug, put the following
in the <filename>buildenv.
bat
</filename> file:
in the <filename>buildenv.
pl
</filename> file:
<screen>
<userinput>
set CONFIG=Debug
$ENV{CONFIG}="Debug";
</userinput>
</screen>
</para>
...
...
@@ -263,7 +262,7 @@
required parts first. Also, make sure that the DLLs required to load all
parts of the system (such as the Perl and Python DLLs for the procedural
languages) are present in the system path. If they are not, set it through
the <filename>buildenv.
bat
</filename> file. To run the tests, run one of
the <filename>buildenv.
pl
</filename> file. To run the tests, run one of
the following commands from the <filename>src\tools\msvc</filename>
directory:
<screen>
...
...
@@ -339,11 +338,10 @@
</para></listitem>
</varlistentry>
</variablelist>
Edit the <filename>buildenv.
bat
</filename> file, and add a variable for the
Edit the <filename>buildenv.
pl
</filename> file, and add a variable for the
location of the root directory, for example:
<screen>
@ECHO OFF
SET DOCROOT=c:\docbook
$ENV{DOCROOT}='c:\docbook';
</screen>
To build the documentation, run the command
<filename>builddoc.bat</filename>. Note that this will actually run the
...
...
src/tools/msvc/builddoc.bat
View file @
0a6ac008
@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
...
...
src/tools/msvc/install.bat
View file @
0a6ac008
@echo
off
REM $PostgreSQL: pgsql/src/tools/msvc/install.bat,v 1.
2 2007/06/26 11:43:5
6 mha Exp $
REM $PostgreSQL: pgsql/src/tools/msvc/install.bat,v 1.
3 2007/12/19 12:29:3
6 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"
...
...
src/tools/msvc/pgbison.bat
View file @
0a6ac008
@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
...
...
src/tools/msvc/pgflex.bat
View file @
0a6ac008
@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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment