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