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