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