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