2 REM Adjust path for your docbook installation in buildenv.pl
8 SET OPENJADE=openjade-1.3.1
9 SET DSSSL=docbook-dsssl-1.79
11 IF EXIST ..\msvc IF EXIST ..\..\..\src cd ..\..\..
12 IF NOT EXIST doc\src\sgml\version.sgml goto noversion
14 IF NOT EXIST src\tools\msvc\buildenv.pl goto nobuildenv
15 perl -e "require 'src/tools/msvc/buildenv.pl'; while(($k,$v) = each %ENV) { print qq[\@SET $k=$v\n]; }" > bldenv.bat
20 IF NOT EXIST %DOCROOT%\%OPENJADE% SET NF=OpenJade
21 IF NOT EXIST %DOCROOT%\docbook SET NF=docbook
22 IF NOT EXIST %DOCROOT%\%DSSSL% set NF=docbook-dssl
24 IF NOT "%NF%" == "" GOTO notfound
26 IF "%1" == "renamefiles" GOTO renamefiles
28 cmd /v /c src\tools\msvc\builddoc renamefiles
31 SET SGML_CATALOG_FILES=%DOCROOT%\%OPENJADE%\dsssl\catalog;%DOCROOT%\docbook\docbook.cat
32 perl %DOCROOT%\%DSSSL%\bin\collateindex.pl -f -g -o bookindex.sgml -N
33 perl mk_feature_tables.pl YES ..\..\..\src\backend\catalog\sql_feature_packages.txt ..\..\..\src\backend\catalog\sql_features.txt > features-supported.sgml
34 perl mk_feature_tables.pl NO ..\..\..\src\backend\catalog\sql_feature_packages.txt ..\..\..\src\backend\catalog\sql_features.txt > features-unsupported.sgml
36 echo Running first build...
37 %DOCROOT%\%OPENJADE%\bin\openjade -V draft-mode -wall -wno-unused-param -wno-empty -D . -c %DOCROOT%\%DSSSL%\catalog -d stylesheet.dsl -i output-html -t sgml postgres.sgml 2>&1 | findstr /V "DTDDECL catalog entries are not supported"
38 echo Running collateindex...
39 perl %DOCROOT%\%DSSSL%\bin\collateindex.pl -f -g -i bookindex -o bookindex.sgml HTML.index
40 echo Running second build...
41 %DOCROOT%\%OPENJADE%\bin\openjade -V draft-mode -wall -wno-unused-param -wno-empty -D . -c %DOCROOT%\%DSSSL%\catalog -d stylesheet.dsl -i output-html -t sgml postgres.sgml 2>&1 | findstr /V "DTDDECL catalog entries are not supported"
44 echo Docs build complete.
49 REM Rename ISO entity files
51 FOR %%f in (ISO*) do (
53 IF NOT "!foo:~-4!" == ".gml" ren !foo! !foo:~0,3!-!foo:~3!.gml
58 echo Could not find directory for %NF%.
63 echo Could not find version.sgml. Please run mkvcbuild.pl first!