bld_chm_exe.bat 2.1 KB

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