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