]> git.saurik.com Git - wxWidgets.git/blobdiff - build/script/win_docs.bat
Minor change to stackwalker.
[wxWidgets.git] / build / script / win_docs.bat
index 1a80b1c70175fdc62c9e76765dfe44062dce15d9..ae2d481f3ec6baf1391a959ea922d0e9d39e0c8b 100644 (file)
@@ -1,3 +1,6 @@
+rem Uncomment the next line to set the version; used also in wxWidgets.iss
+SET WXW_VER=2.8.0
+if %WXW_VER%=="" SET WXW_VER=CVS
 
 rem  This builds the docs in %WXWIN% in a number of formats 
 rem  and a clean inno setup in a second tree
@@ -23,6 +26,8 @@ echo CVS update  >>  c:\temp.log
 
 rem add bakefile build...
 set PATH=%PATH%;C:\wx\Bakefile\src
+cd \wx\inno\wxWidgets\build\bakefiles
+del .bakefile_gen.state
 bakefile_gen 
 
 
@@ -59,20 +64,22 @@ call ps2pdf tex2rtf.ps >> c:\temp.log
 
 echo Zipping
 cd %WXWIN%
-del %DAILY%\*.zip
-zip %DAILY%\wxWidgets-Docs-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm
-zip %DAILY%\wxWidgets-Docs-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt docs/winhelp/*.hlp docs/winhelp/*.cnt
-Rem zip %DAILY%\wx-docs-extra-hlp.ZIP utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt docs/winhelp/*.hlp docs/winhelp/*.cnt -x  docs/winhelp/wx.hlp docs/winhelp/wx.*
-Rem zip %DAILY%\wx-docs-extra-chm.ZIP utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm 
+del %DAILY%\*.ZIP
+rem these need to be .ZIP so they will get date on Unix (rebuild_makefiles.sh)
+zip %DAILY%\wxWidgets-%WXW_VER%-CHM.ZIP docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm
+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
+
 cd %DAILY%\
 mkdir docs
 mkdir docs\pdf
 del docs\pdf\*.pdf
 move in\*.pdf docs\pdf
-zip wxWidgets-Docs-PDF.zip docs\pdf\*.pdf
-Rem zip wx-docs-extra-pdf.ZIP docs\pdf\*.pdf -x docs\pdf\wx.pdf
+zip wxWidgets-%WXW_VER%-PDF.ZIP docs\pdf\*.pdf
 
-copy docs\htmlhelp\wx.chm %WXWIN%\docs\htmlhelp\wx.chm
+rem copy chm to inno
+cd %WXWIN%
+mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
+copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
 cd %WXWIN%\build\script
 iscc wxwidgets.iss >> c:\temp.log
 
@@ -85,5 +92,7 @@ copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
 copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.EXE
 dir s: /od >> c:\temp.log
 
+echo docs built for %WXW_VER%
+echo docs built for %WXW_VER% >> c:\temp.log