]> git.saurik.com Git - wxWidgets.git/blob - build/script/win_docs.bat
first phase of transition to unified Unicode build:
[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.2
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 & dos2unix, 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 setup.exe only)
22 c:
23 cd %WXWIN%
24 cvs up -P -d
25
26 rem now inno
27 cd \wx\inno\wxWidgets
28 del c*.*
29 if exist include\wx\msw\setup.h del include\wx\msw\setup.h
30 if exist include\wx\univ\setup.h del include\wx\univ\setup.h
31 cvs up -P
32 dos2unix configure
33 dos2unix config.guess
34 dos2unix config.sub
35 copy include\wx\msw\setup0.h include\wx\msw\setup.h
36 copy include\wx\univ\setup0.h include\wx\univ\setup.h
37 echo CVS update >> c:\temp.log
38
39 rem add bakefile build...
40 rem just build the formats not in the CVS to keep down the .#makefile...
41 set PATH=%PATH%;C:\wx\Bakefile\src
42 cd \wx\inno\wxWidgets\build\bakefiles
43 del .bakefile_gen.state
44 bakefile_gen -f dmars,dmars,msevc4prj,dmars_smake >> c:\temp.log
45
46
47 rem add nmake to the path and build the docs
48 call \vc6
49 echo %PATH% >> c:\temp.log
50 SET >> c:\temp.log
51 cd %WXWIN%\build\script
52 nmake -f makedocs.vc cleandocs
53 nmake -f makedocs.vc alldocs
54
55 del %DAILY%\in\*.p*
56 mkdir %WXWIN%\docs\pdf
57 mkdir %WXWIN%\docs\htmlhelp
58 mkdir %WXWIN%\docs\htb
59 echo starting word >> c:\temp.log
60 start /WAIT winword /mwx_ps
61
62
63 echo cvs doc up part 2 >> c:\temp.log
64
65 rem use ghostscript ps2pdf - add extra path first
66 rem set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
67 rem set PATH=%PATH%;C:\wx\GnuWin32\bin;C:\PROGRA~1\INNOSE~1
68
69 cd %DAILY%\in
70 call ps2pdf wx.ps >> c:\temp.log
71 call ps2pdf fl.ps >> c:\temp.log
72 call ps2pdf gizmos.ps >> c:\temp.log
73 call ps2pdf mmedia.ps >> c:\temp.log
74 call ps2pdf ogl.ps >> c:\temp.log
75 call ps2pdf svg.ps >> c:\temp.log
76 call ps2pdf tex2rtf.ps >> c:\temp.log
77
78 echo Zipping
79 cd %WXWIN%
80 del %DAILY%\*.zip
81 zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm
82 zip %DAILY%\wxWidgets-%WXW_VER%-HTB.zip docs\htb\*.htb utils/tex2rtf/docs/*.htb
83 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
84 zip -r %DAILY%\wxWidgets-%WXW_VER%-HTML.zip docs\html\* -x CVS -x *.con -x *.hh* -x *.ref -x *.htx -x *.cn1 -x docs\html\CVS\*
85
86 cd %DAILY%\
87 mkdir docs
88 mkdir docs\pdf
89 del docs\pdf\*.pdf
90 move in\*.pdf docs\pdf
91 zip wxWidgets-%WXW_VER%-PDF.zip docs\pdf\*.pdf
92
93 rem copy chm to inno
94 cd %WXWIN%
95 mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
96 copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
97 cd %WXWIN%\build\script
98 iscc wxwidgets.iss >> c:\temp.log
99
100 rem echo setting S
101 rem echo yes > net use s: /delete
102 rem net use s: \\biolpc22\bake
103 rem net use >> c:\temp.log
104
105 rem copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
106 rem copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.exe
107 rem dir s: /od >> c:\temp.log
108
109 echo docs built for %WXW_VER%
110 echo docs built for %WXW_VER% >> c:\temp.log
111
112