]> git.saurik.com Git - wxWidgets.git/blame_incremental - build/script/win_docs.bat
Version 1.8-0
[wxWidgets.git] / build / script / win_docs.bat
... / ...
CommitLineData
1rem Uncomment the next line to set the version; used also in wxWidgets.iss
2SET WXW_VER=2.8.1
3if (%WXW_VER%)==() SET WXW_VER=CVS
4
5echo docs building for %WXW_VER%
6
7rem This builds the docs in %WXWIN% in a number of formats
8rem and a clean inno setup in a second tree
9rem it uses a number of tools nmake, gnuwin32 zip & dos2unix, ghostscript, MS word, cvsNT
10rem cvs is in the path already from CVSNT install
11rem writes a log file in c:\
12
13echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log
14
15set WXWIN=c:\wx\wxWidgets
16set DAILY=c:\daily
17set PATH=%PATH%;C:\wx\wxw26b\utils\tex2rtf\src\vc_based;C:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
18set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
19echo %PATH% >> c:\temp.log
20
21rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only)
22c:
23cd %WXWIN%
24cvs up -P -d
25
26rem now inno
27cd \wx\inno\wxWidgets
28del c*.*
29if exist include\wx\msw\setup.h del include\wx\msw\setup.h
30if exist include\wx\univ\setup.h del include\wx\univ\setup.h
31cvs up -P
32dos2unix configure
33dos2unix config.guess
34dos2unix config.sub
35copy include\wx\msw\setup0.h include\wx\msw\setup.h
36copy include\wx\univ\setup0.h include\wx\univ\setup.h
37echo CVS update >> c:\temp.log
38
39rem add bakefile build...
40rem just build the formats not in the CVS to keep down the .#makefile...
41set PATH=%PATH%;C:\wx\Bakefile\src
42cd \wx\inno\wxWidgets\build\bakefiles
43del .bakefile_gen.state
44bakefile_gen -f dmars,dmars,msevc4prj,dmars_smake >> c:\temp.log
45
46
47rem add nmake to the path and build the docs
48call \vc6
49echo %PATH% >> c:\temp.log
50SET >> c:\temp.log
51cd %WXWIN%\build\script
52nmake -f makedocs.vc cleandocs
53nmake -f makedocs.vc alldocs
54
55del %DAILY%\in\*.p*
56mkdir %WXWIN%\docs\pdf
57mkdir %WXWIN%\docs\htmlhelp
58mkdir %WXWIN%\docs\htb
59echo starting word >> c:\temp.log
60start /WAIT winword /mwx_ps
61
62
63echo cvs doc up part 2 >> c:\temp.log
64
65rem use ghostscript ps2pdf - add extra path first
66rem set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
67rem set PATH=%PATH%;C:\wx\GnuWin32\bin;C:\PROGRA~1\INNOSE~1
68
69cd %DAILY%\in
70call ps2pdf wx.ps >> c:\temp.log
71call ps2pdf fl.ps >> c:\temp.log
72call ps2pdf gizmos.ps >> c:\temp.log
73call ps2pdf mmedia.ps >> c:\temp.log
74call ps2pdf ogl.ps >> c:\temp.log
75call ps2pdf svg.ps >> c:\temp.log
76call ps2pdf tex2rtf.ps >> c:\temp.log
77
78echo Zipping
79cd %WXWIN%
80del %DAILY%\*.zip
81zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm
82zip %DAILY%\wxWidgets-%WXW_VER%-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt docs/winhelp/*.hlp docs/winhelp/*.cnt
83
84cd %DAILY%\
85mkdir docs
86mkdir docs\pdf
87del docs\pdf\*.pdf
88move in\*.pdf docs\pdf
89zip wxWidgets-%WXW_VER%-PDF.zip docs\pdf\*.pdf
90
91rem copy chm to inno
92cd %WXWIN%
93mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
94copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
95cd %WXWIN%\build\script
96iscc wxwidgets.iss >> c:\temp.log
97
98rem echo setting S
99rem echo yes > net use s: /delete
100rem net use s: \\biolpc22\bake
101rem net use >> c:\temp.log
102
103rem copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
104rem copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.exe
105rem dir s: /od >> c:\temp.log
106
107echo docs built for %WXW_VER%
108echo docs built for %WXW_VER% >> c:\temp.log
109
110