]> git.saurik.com Git - wxWidgets.git/blame_incremental - build/script/win_docs.bat
assert if wxCAL_SEQUENTIAL_MONTH_SELECTION style is changed after creation as this...
[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.0
3if %WXW_VER%=="" SET WXW_VER=CVS
4
5rem This builds the docs in %WXWIN% in a number of formats
6rem and a clean inno setup in a second tree
7rem it uses a number of tools nmake, gnuwin32 zip, ghostscript, MS word, cvsNT
8rem cvs is in the path already from CVSNT install
9rem writes a log file in c:\
10
11echo Building wxWidgets docs... > c:\temp.log
12
13set WXWIN=c:\wx\wxWidgets
14set DAILY=c:\daily
15set PATH=%PATH%;C:\wx\wxw26b\utils\tex2rtf\src\vc_based;C:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
16set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
17echo %PATH% >> c:\temp.log
18
19rem update wxwidgets (holds docs) and inno (cvs wxMSW module only)
20c:
21cd %WXWIN%
22cvs up -P -d
23cd \wx\inno\wxWidgets
24cvs up -P
25echo CVS update >> c:\temp.log
26
27rem add bakefile build...
28set PATH=%PATH%;C:\wx\Bakefile\src
29cd \wx\inno\wxWidgets\build\bakefiles
30del .bakefile_gen.state
31bakefile_gen
32
33
34rem add nmake to the path and build the docs
35call \vc6
36echo %PATH% >> c:\temp.log
37SET >> c:\temp.log
38cd %WXWIN%\build\script
39nmake -f makedocs.vc cleandocs
40nmake -f makedocs.vc alldocs
41
42del %DAILY%\in\*.p*
43mkdir %WXWIN%\docs\pdf
44mkdir %WXWIN%\docs\htmlhelp
45mkdir %WXWIN%\docs\htb
46echo starting word >> c:\temp.log
47start /WAIT winword /mwx_ps
48
49
50echo cvs doc up part 2 >> c:\temp.log
51
52rem use ghostscript ps2pdf - add extra path first
53rem set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
54rem set PATH=%PATH%;C:\wx\GnuWin32\bin;C:\PROGRA~1\INNOSE~1
55
56cd %DAILY%\in
57call ps2pdf wx.ps >> c:\temp.log
58call ps2pdf fl.ps >> c:\temp.log
59call ps2pdf gizmos.ps >> c:\temp.log
60call ps2pdf mmedia.ps >> c:\temp.log
61call ps2pdf ogl.ps >> c:\temp.log
62call ps2pdf svg.ps >> c:\temp.log
63call ps2pdf tex2rtf.ps >> c:\temp.log
64
65echo Zipping
66cd %WXWIN%
67del %DAILY%\*.ZIP
68rem these need to be .ZIP so they will get date on Unix (rebuild_makefiles.sh)
69zip %DAILY%\wxWidgets-%WXW_VER%-CHM.ZIP docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm
70zip %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
71
72cd %DAILY%\
73mkdir docs
74mkdir docs\pdf
75del docs\pdf\*.pdf
76move in\*.pdf docs\pdf
77zip wxWidgets-%WXW_VER%-PDF.ZIP docs\pdf\*.pdf
78
79rem copy chm to inno
80cd %WXWIN%
81mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
82copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
83cd %WXWIN%\build\script
84iscc wxwidgets.iss >> c:\temp.log
85
86echo setting S
87echo yes > net use s: /delete
88net use s: \\biolpc22\bake
89net use >> c:\temp.log
90
91copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
92copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.EXE
93dir s: /od >> c:\temp.log
94
95echo docs built for %WXW_VER%
96echo docs built for %WXW_VER% >> c:\temp.log
97
98