1 rem Uncomment the next line to set the version; used also in wxWidgets.iss
3 if %WXW_VER%=="" SET WXW_VER
=CVS
5 rem This builds the docs in %WXWIN% in a number of formats
6 rem and a clean inno setup in a second tree
7 rem it uses a number of tools nmake, gnuwin32 zip, ghostscript, MS word, cvsNT
8 rem cvs is in the path already from CVSNT install
9 rem writes a log file in c:\
11 echo Building wxWidgets docs...
> c
:\temp.log
13 set WXWIN
=c
:\wx\wxWidgets
15 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
16 set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib
;C
:\Program
Files\gs\gs8.51
\bin
17 echo %PATH% >> c
:\temp.log
19 rem update wxwidgets (holds docs) and inno (cvs wxMSW module only)
25 echo CVS update
>> c
:\temp.log
27 rem add bakefile build...
28 set PATH=%PATH%;C:\wx\Bakefile\src
29 cd \wx\inno\wxWidgets
\build
\bakefiles
30 del .bakefile_gen.state
34 rem add nmake to the path and build the docs
36 echo %PATH% >> c
:\temp.log
38 cd %WXWIN%\build\script
39 nmake
-f makedocs.vc cleandocs
40 nmake
-f makedocs.vc alldocs
43 mkdir %WXWIN%\docs\pdf
44 mkdir %WXWIN%\docs\htmlhelp
45 mkdir %WXWIN%\docs\htb
46 echo starting word
>> c
:\temp.log
47 start /WAIT winword
/mwx_ps
50 echo cvs doc up part
2 >> c
:\temp.log
52 rem use ghostscript ps2pdf - add extra path first
53 rem set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
54 rem set PATH=%PATH%;C:\wx\GnuWin32\bin;C:\PROGRA~1\INNOSE~1
57 call ps2pdf wx.ps
>> c
:\temp.log
58 call ps2pdf fl.ps
>> c
:\temp.log
59 call ps2pdf gizmos.ps
>> c
:\temp.log
60 call ps2pdf mmedia.ps
>> c
:\temp.log
61 call ps2pdf ogl.ps
>> c
:\temp.log
62 call ps2pdf svg.ps
>> c
:\temp.log
63 call ps2pdf tex2rtf.ps
>> c
:\temp.log
68 rem these need to be .ZIP so they will get date on Unix (rebuild_makefiles.sh)
69 zip
%DAILY%\wxWidgets-%WXW_VER%-CHM.ZIP docs\htmlhelp\wx.chm utils
/tex2rtf
/docs
/*.chm docs
/htmlhelp
/*.chm
70 zip
%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
76 move in\
*.pdf docs\pdf
77 zip wxWidgets
-%WXW_VER%-PDF.ZIP docs\pdf\
*.pdf
80 mkdir c
:\wx\inno\wxWidgets\docs\htmlhelp
81 copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
82 cd %WXWIN%\build\script
83 iscc wxwidgets.iss
>> c
:\temp.log
86 echo yes
> net use s
: /delete
87 net use s
: \\biolpc22
\bake
88 net use >> c
:\temp.log
90 copy %DAILY%\*.ZIP s
:\bkl
-cronjob
\archives\win
91 copy %DAILY%\*.exe s
:\bkl
-cronjob
\archives\win\
*.EXE
92 dir s
: /od
>> c
:\temp.log
94 echo docs built
for %WXW_VER%
95 echo docs built
for %WXW_VER% >> c
:\temp.log