]> git.saurik.com Git - wxWidgets.git/blame - build/script/win_docs.bat
best size fix for multi-line fields
[wxWidgets.git] / build / script / win_docs.bat
CommitLineData
16e72edb 1rem Uncomment the next line to set the version; used also in wxWidgets.iss
675c8837 2SET WXW_VER=2.8.0
520711e6 3if (%WXW_VER%)==() SET WXW_VER=CVS
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
9rem it uses a number of tools nmake, gnuwin32 zip, ghostscript, MS word, cvsNT
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
3dbe49e1 17set PATH=%PATH%;C:\wx\wxw26b\utils\tex2rtf\src\vc_based;C:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
cc48c73f 18set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
96a9f4e8 19echo %PATH% >> c:\temp.log
cc48c73f
CE
20
21rem update wxwidgets (holds docs) and inno (cvs wxMSW module only)
22c:
23cd %WXWIN%
24cvs up -P -d
25cd \wx\inno\wxWidgets
24e9f36b 26if exist include\wx\msw\setup.h del include\wx\msw\setup.h
cc48c73f 27cvs up -P
24e9f36b 28copy include\wx\msw\setup0.h include\wx\msw\setup.h
96a9f4e8 29echo CVS update >> c:\temp.log
cc48c73f 30
56363ed0 31rem add bakefile build...
7b543b99 32rem just build the formats not in the CVS to keep down the .#makefile...
56363ed0 33set PATH=%PATH%;C:\wx\Bakefile\src
e83a2e04
CE
34cd \wx\inno\wxWidgets\build\bakefiles
35del .bakefile_gen.state
7b543b99 36bakefile_gen -f dmars,dmars,msevc4prj,dmars_smake >> c:\temp.log
56363ed0 37
cc48c73f
CE
38
39rem add nmake to the path and build the docs
40call \vc6
41echo %PATH% >> c:\temp.log
42SET >> c:\temp.log
43cd %WXWIN%\build\script
44nmake -f makedocs.vc cleandocs
45nmake -f makedocs.vc alldocs
46
96a9f4e8 47del %DAILY%\in\*.p*
3dbe49e1
CE
48mkdir %WXWIN%\docs\pdf
49mkdir %WXWIN%\docs\htmlhelp
50mkdir %WXWIN%\docs\htb
cc48c73f
CE
51echo starting word >> c:\temp.log
52start /WAIT winword /mwx_ps
53
54
55echo cvs doc up part 2 >> c:\temp.log
56
57rem use ghostscript ps2pdf - add extra path first
58rem set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
59rem set PATH=%PATH%;C:\wx\GnuWin32\bin;C:\PROGRA~1\INNOSE~1
60
96a9f4e8 61cd %DAILY%\in
cc48c73f
CE
62call ps2pdf wx.ps >> c:\temp.log
63call ps2pdf fl.ps >> c:\temp.log
64call ps2pdf gizmos.ps >> c:\temp.log
65call ps2pdf mmedia.ps >> c:\temp.log
66call ps2pdf ogl.ps >> c:\temp.log
67call ps2pdf svg.ps >> c:\temp.log
68call ps2pdf tex2rtf.ps >> c:\temp.log
69
cc48c73f
CE
70echo Zipping
71cd %WXWIN%
7b543b99
CE
72del %DAILY%\*.zip
73zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm
74zip %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
16e72edb 75
e4082155
CE
76cd %DAILY%\
77mkdir docs
78mkdir docs\pdf
79del docs\pdf\*.pdf
dba6243c 80move in\*.pdf docs\pdf
7b543b99 81zip wxWidgets-%WXW_VER%-PDF.zip docs\pdf\*.pdf
cc48c73f 82
e83a2e04 83rem copy chm to inno
c6f9d355 84cd %WXWIN%
e83a2e04 85mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
16e72edb 86copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
56363ed0
CE
87cd %WXWIN%\build\script
88iscc wxwidgets.iss >> c:\temp.log
cc48c73f 89
7b543b99
CE
90rem echo setting S
91rem echo yes > net use s: /delete
92rem net use s: \\biolpc22\bake
93rem net use >> c:\temp.log
cc48c73f 94
7b543b99
CE
95rem copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
96rem copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.exe
97rem dir s: /od >> c:\temp.log
cc48c73f 98
00ea969c
CE
99echo docs built for %WXW_VER%
100echo docs built for %WXW_VER% >> c:\temp.log
cc48c73f
CE
101
102