]> git.saurik.com Git - wxWidgets.git/blob - build/tools/bld_chm_exe.bat
d6f59b2a796db71fbd938f234ef566c13675863e
[wxWidgets.git] / build / tools / bld_chm_exe.bat
1 rem Uncomment the next line to set the version; used also in wxWidgets.iss
2 SET WXW_VER=3.0.0
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, gnuwin32 zip & dos2unix,
10 rem writes a log file in c:\
11
12 echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log
13
14 set WXWIN=c:\wx\wxWidgets
15 set DAILY=c:\daily
16 set INNO=c:\wx\inno\wxWidgets
17
18 rem svn already in my path...
19 set PATH=%PATH%;c:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1;c:\wx\doxygen\bin
20 set PATH=%PATH%;C:\wx\Graphviz\bin
21 echo %PATH% >> c:\temp.log
22
23
24 rem update wxwidgets (holds docs) and inno (wxMSW setup.exe only)
25 c:
26 cd %WXWIN%
27 svn cleanup >> c:\temp.log
28 svn up >> c:\temp.log
29
30 rem now inno
31 cd %INNO% >> c:\temp.log
32 rem Don't update the svn automatically
33 rem svn cleanup >> c:\temp.log
34 rem svn up >> c:\temp.log
35
36 if exist include\wx\msw\setup.h del include\wx\msw\setup.h
37 if exist include\wx\univ\setup.h del include\wx\univ\setup.h
38
39 del c*.*
40 svn up configure
41 svn up configure.in
42 svn up config.guess
43 svn up config.sub
44 dos2unix configure
45 dos2unix config.guess
46 dos2unix config.sub
47 copy include\wx\msw\setup0.h include\wx\msw\setup.h
48 copy include\wx\univ\setup0.h include\wx\univ\setup.h
49 echo SVN update >> c:\temp.log
50
51 rem make chm
52 rem Now create standalone copies of docs (chm and htb)
53 cd %WXWIN%\docs\doxygen
54 del out\html\*.html
55 del out\html\*.htb
56 del out\html\*.zip
57 del out\*.chm
58 call regen chm
59
60
61 cd %WXWIN%\docs\doxygen\out
62 zip wxWidgets-%WXW_VER%-docs-chm.zip wx.chm
63 copy wxWidgets-%WXW_VER%-docs-chm.zip %DAILY%
64 cd html
65 del *.dot
66 del *.md5
67 zip -r wx.htb *.*
68 copy wx.htb %DAILY%\wxWidgets-%WXW_VER%-docs-html.zip
69 zip wxWidgets-%WXW_VER%-docs-htb.zip wx.htb
70 copy wxWidgets-%WXW_VER%-docs-htb.zip %DAILY%
71
72
73 mkdir %INNO%\docs\htmlhelp
74 copy %WXWIN%\docs\doxygen\out\wx.chm %INNO%\docs\htmlhelp\wx.chm
75 cd %WXWIN%\build\tools
76 iscc wxwidgets.iss >> c:\temp.log
77 copy %INNO%\..\wxMSW-%WXW_VER%-Setup.exe c:\daily
78
79 echo docs built for %WXW_VER%
80 echo docs built for %WXW_VER% >> c:\temp.log
81
82