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