]>
Commit | Line | Data |
---|---|---|
16e72edb CE |
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 | |
cc48c73f CE |
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 | ||
96a9f4e8 CE |
11 | echo Building wxWidgets docs... > c:\temp.log |
12 | ||
cc48c73f | 13 | set WXWIN=c:\wx\wxWidgets |
96a9f4e8 | 14 | set DAILY=c:\daily |
3dbe49e1 | 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 |
cc48c73f | 16 | set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin |
96a9f4e8 | 17 | echo %PATH% >> c:\temp.log |
cc48c73f CE |
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 | |
96a9f4e8 | 25 | echo CVS update >> c:\temp.log |
cc48c73f | 26 | |
56363ed0 CE |
27 | rem add bakefile build... |
28 | set PATH=%PATH%;C:\wx\Bakefile\src | |
e83a2e04 CE |
29 | cd \wx\inno\wxWidgets\build\bakefiles |
30 | del .bakefile_gen.state | |
56363ed0 CE |
31 | bakefile_gen |
32 | ||
cc48c73f CE |
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 | ||
96a9f4e8 | 42 | del %DAILY%\in\*.p* |
3dbe49e1 CE |
43 | mkdir %WXWIN%\docs\pdf |
44 | mkdir %WXWIN%\docs\htmlhelp | |
45 | mkdir %WXWIN%\docs\htb | |
cc48c73f CE |
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 | ||
96a9f4e8 | 56 | cd %DAILY%\in |
cc48c73f CE |
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 | ||
cc48c73f CE |
65 | echo Zipping |
66 | cd %WXWIN% | |
16e72edb CE |
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 | ||
e4082155 CE |
72 | cd %DAILY%\ |
73 | mkdir docs | |
74 | mkdir docs\pdf | |
75 | del docs\pdf\*.pdf | |
dba6243c | 76 | move in\*.pdf docs\pdf |
16e72edb | 77 | zip wxWidgets-%WXW_VER%-PDF.ZIP docs\pdf\*.pdf |
cc48c73f | 78 | |
e83a2e04 CE |
79 | rem copy chm to inno |
80 | mkdir c:\wx\inno\wxWidgets\docs\htmlhelp | |
16e72edb | 81 | copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm |
56363ed0 CE |
82 | cd %WXWIN%\build\script |
83 | iscc wxwidgets.iss >> c:\temp.log | |
cc48c73f CE |
84 | |
85 | echo setting S | |
c8333fe8 CE |
86 | echo yes > net use s: /delete |
87 | net use s: \\biolpc22\bake | |
e4082155 | 88 | net use >> c:\temp.log |
cc48c73f | 89 | |
96a9f4e8 CE |
90 | copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win |
91 | copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.EXE | |
e4082155 | 92 | dir s: /od >> c:\temp.log |
cc48c73f | 93 | |
00ea969c CE |
94 | echo docs built for %WXW_VER% |
95 | echo docs built for %WXW_VER% >> c:\temp.log | |
cc48c73f CE |
96 | |
97 |