]> git.saurik.com Git - wxWidgets.git/blame - build/script/win_docs.bat
ReadBig() should be defined in ANSI build too
[wxWidgets.git] / build / script / win_docs.bat
CommitLineData
16e72edb 1rem Uncomment the next line to set the version; used also in wxWidgets.iss
61d31e95 2rem SET WXW_VER=2.9.0
6865660d 3if (%WXW_VER%)==() SET WXW_VER=SVN
cc48c73f 4
7b543b99
CE
5echo docs building for %WXW_VER%
6
cc48c73f
CE
7rem This builds the docs in %WXWIN% in a number of formats
8rem and a clean inno setup in a second tree
5b204a08 9rem it uses a number of tools nmake, gnuwin32 zip & dos2unix, ghostscript, MS word, cvsNT
cc48c73f
CE
10rem cvs is in the path already from CVSNT install
11rem writes a log file in c:\
12
7b543b99 13echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log
96a9f4e8 14
cc48c73f 15set WXWIN=c:\wx\wxWidgets
96a9f4e8 16set DAILY=c:\daily
1f3b7817
CE
17
18rem svn already in my path...
0a4090e6 19set PATH=%PATH%;C:\wx\WXWIDG~1.0\utils\tex2rtf\src\vc_based;c:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
cc48c73f 20set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
61d31e95
CE
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
cc48c73f 29
5b204a08 30rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only)
cc48c73f
CE
31c:
32cd %WXWIN%
6865660d
CE
33svn cleanup >> c:\temp.log
34svn up >> c:\temp.log
5b204a08
CE
35
36rem now inno
6865660d 37cd \wx\inno\wxWidgets >> c:\temp.log
0a4090e6
CE
38svn cleanup >> c:\temp.log
39svn up >> c:\temp.log
5b204a08 40del c*.*
24e9f36b 41if exist include\wx\msw\setup.h del include\wx\msw\setup.h
5b204a08 42if exist include\wx\univ\setup.h del include\wx\univ\setup.h
0a4090e6 43
5b204a08
CE
44dos2unix configure
45dos2unix config.guess
46dos2unix config.sub
24e9f36b 47copy include\wx\msw\setup0.h include\wx\msw\setup.h
5b204a08 48copy include\wx\univ\setup0.h include\wx\univ\setup.h
6865660d 49echo SVN update >> c:\temp.log
cc48c73f 50
6865660d 51rem just build the formats not in the SVN to keep down the .#makefile...
e83a2e04
CE
52cd \wx\inno\wxWidgets\build\bakefiles
53del .bakefile_gen.state
d761f751 54bakefile_gen -f dmars,dmars_smake,msevc4prj >> c:\temp.log
56363ed0 55
cc48c73f 56
cc48c73f
CE
57cd %WXWIN%\build\script
58nmake -f makedocs.vc cleandocs
59nmake -f makedocs.vc alldocs
60
96a9f4e8 61del %DAILY%\in\*.p*
3dbe49e1
CE
62mkdir %WXWIN%\docs\pdf
63mkdir %WXWIN%\docs\htmlhelp
64mkdir %WXWIN%\docs\htb
cc48c73f
CE
65echo starting word >> c:\temp.log
66start /WAIT winword /mwx_ps
67
68
69echo cvs doc up part 2 >> c:\temp.log
70
96a9f4e8 71cd %DAILY%\in
cc48c73f 72call ps2pdf wx.ps >> c:\temp.log
cc48c73f
CE
73call ps2pdf tex2rtf.ps >> c:\temp.log
74
cc48c73f
CE
75echo Zipping
76cd %WXWIN%
7b543b99 77del %DAILY%\*.zip
61d31e95 78zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm
fdf19d28 79zip %DAILY%\wxWidgets-%WXW_VER%-HTB.zip docs\htb\*.htb utils/tex2rtf/docs/*.htb
61d31e95 80zip %DAILY%\wxWidgets-%WXW_VER%-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt
bc31c60f 81zip -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\*
16e72edb 82
61d31e95
CE
83del %DAILY%\*.tar.gz
84bsdtar zcvf %DAILY%\wxWidgets-%WXW_VER%-HTB.tar.gz docs/htb/*.htb utils/tex2rtf/docs/*.htb
bc31c60f 85bsdtar 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/*
61d31e95 86
e4082155
CE
87cd %DAILY%\
88mkdir docs
89mkdir docs\pdf
90del docs\pdf\*.pdf
dba6243c 91move in\*.pdf docs\pdf
7b543b99 92zip wxWidgets-%WXW_VER%-PDF.zip docs\pdf\*.pdf
cc48c73f 93
e83a2e04 94rem copy chm to inno
c6f9d355 95cd %WXWIN%
e83a2e04 96mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
16e72edb 97copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
56363ed0
CE
98cd %WXWIN%\build\script
99iscc wxwidgets.iss >> c:\temp.log
cc48c73f 100
00ea969c
CE
101echo docs built for %WXW_VER%
102echo docs built for %WXW_VER% >> c:\temp.log
cc48c73f
CE
103
104