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