updated the version to 2.9.1
[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.1-rc1
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 set INNO=c:\wx\inno\wxWidgets
18
19 rem svn already in my path...
20 set PATH=%PATH%;c:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
21
22 echo %PATH% >> c:\temp.log
23 rem add bakefile build...
24 set PATH=%PATH%;C:\wx\Bakefile
25
26 SET >> c:\temp.log
27
28
29 rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only)
30 c:
31 cd %WXWIN%
32 svn cleanup >> c:\temp.log
33 svn up >> c:\temp.log
34
35 rem now inno
36 cd %INNO% >> c:\temp.log
37 svn cleanup >> c:\temp.log
38 svn up >> c:\temp.log
39
40 if exist include\wx\msw\setup.h del include\wx\msw\setup.h
41 if exist include\wx\univ\setup.h del include\wx\univ\setup.h
42
43 rem for cygwin these need to be in unix format
44 del configure
45 del config.guess
46 del config.sub
47 svn up configure
48 svn up config.guess
49 svn up config.sub
50 dos2unix configure
51 dos2unix config.guess
52 dos2unix config.sub
53
54 copy include\wx\msw\setup0.h include\wx\msw\setup.h
55 copy include\wx\univ\setup0.h include\wx\univ\setup.h
56 echo SVN update >> c:\temp.log
57
58 rem just build the formats not in the SVN to keep down the .#makefile...
59 cd %INNO%\build\bakefiles
60 del .bakefile_gen.state
61 bakefile_gen -k -f dmars,dmars_smake,msevc4prj >> c:\temp.log
62
63
64
65 rem make and copy chm to inno
66 rem Now create standalone copies of docs (chm and htb)
67 cd %WXWIN%\docs\doxygen
68 del out\html\*.html
69 del out\html\*.htb
70 del out\*.chm
71 call regen chm
72
73
74 cd %WXWIN%\docs\doxygen\out
75 zip wxWidgets-%WXW_VER%-chm.zip wx.chm
76 copy wxWidgets-%WXW_VER%-chm.zip %DAILY%
77 cd html
78 del *.dot
79 del *.md5
80 zip -r wx.htb *.*
81 zip wxWidgets-%WXW_VER%-htb.zip wx.htb
82 copy wxWidgets-%WXW_VER%-htb.zip %DAILY%
83
84
85 mkdir %INNO%\docs\htmlhelp
86 copy %WXWIN%\docs\doxygen\out\wx.chm \wx\inno\wx29b\docs\htmlhelp\wx.chm
87 cd %WXWIN%\build\script
88 iscc wxwidgets.iss >> c:\temp.log
89
90 echo docs built for %WXW_VER%
91 echo docs built for %WXW_VER% >> c:\temp.log
92
93