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