]> git.saurik.com Git - wxWidgets.git/blob - build/script/win_docs.bat
don't create m_dottedPen with an invalid 0 style which results in an assert under MSW
[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=SVN
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
18 rem svn already in my path...
19 set PATH=%PATH%;C:\wx\oldcvs\wxw26b\utils\tex2rtf\src\vc_based;c:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
20 set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
21 rem add nmake to the path to build the docs
22 call \vc6
23 echo %PATH% >> c:\temp.log
24 rem add bakefile build...
25 set PATH=%PATH%;C:\wx\Bakefile\src
26
27 SET >> c:\temp.log
28
29
30 rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only)
31 c:
32 cd %WXWIN%
33 svn cleanup >> c:\temp.log
34 svn up >> c:\temp.log
35
36 rem now inno
37 cd \wx\inno\wxWidgets >> c:\temp.log
38 del c*.*
39 if exist include\wx\msw\setup.h del include\wx\msw\setup.h
40 if exist include\wx\univ\setup.h del include\wx\univ\setup.h
41 svn cleanup >> c:\temp.log
42 svn up >> c:\temp.log
43 dos2unix configure
44 dos2unix config.guess
45 dos2unix config.sub
46 copy include\wx\msw\setup0.h include\wx\msw\setup.h
47 copy include\wx\univ\setup0.h include\wx\univ\setup.h
48 echo SVN update >> c:\temp.log
49
50 rem just build the formats not in the SVN to keep down the .#makefile...
51 cd \wx\inno\wxWidgets\build\bakefiles
52 del .bakefile_gen.state
53 bakefile_gen -f dmars,dmars_smake,msevc4prj >> c:\temp.log
54
55
56 cd %WXWIN%\build\script
57 nmake -f makedocs.vc cleandocs
58 nmake -f makedocs.vc alldocs
59
60 del %DAILY%\in\*.p*
61 mkdir %WXWIN%\docs\pdf
62 mkdir %WXWIN%\docs\htmlhelp
63 mkdir %WXWIN%\docs\htb
64 echo starting word >> c:\temp.log
65 start /WAIT winword /mwx_ps
66
67
68 echo cvs doc up part 2 >> c:\temp.log
69
70 cd %DAILY%\in
71 call ps2pdf wx.ps >> c:\temp.log
72 call ps2pdf tex2rtf.ps >> c:\temp.log
73
74 echo Zipping
75 cd %WXWIN%
76 del %DAILY%\*.zip
77 zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm
78 zip %DAILY%\wxWidgets-%WXW_VER%-HTB.zip docs\htb\*.htb utils/tex2rtf/docs/*.htb
79 zip %DAILY%\wxWidgets-%WXW_VER%-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt
80 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\*
81
82 del %DAILY%\*.tar.gz
83 bsdtar zcvf %DAILY%\wxWidgets-%WXW_VER%-HTB.tar.gz docs/htb/*.htb utils/tex2rtf/docs/*.htb
84 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/*
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 echo docs built for %WXW_VER%
101 echo docs built for %WXW_VER% >> c:\temp.log
102
103