]> git.saurik.com Git - wxWidgets.git/blobdiff - build/script/win_docs.bat
consolidated duplicated static functions into one file
[wxWidgets.git] / build / script / win_docs.bat
index 1c5f2c5a445c70a868bea921ca3bd907745a2905..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
@@ -21,6 +24,12 @@ cd \wx\inno\wxWidgets
 cvs up -P
 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 
+
 
 rem add nmake to the path and build the docs
 call  \vc6
@@ -53,28 +62,37 @@ call ps2pdf ogl.ps >> c:\temp.log
 call ps2pdf svg.ps >> c:\temp.log
 call ps2pdf tex2rtf.ps >> c:\temp.log
 
-cd %WXWIN%\build\script
-iscc wxwidgets.iss >> c:\temp.log
-
-
 echo Zipping
 cd %WXWIN%
-del %DAILY%\*.zip
-zip %DAILY%\wx-docs-chm.ZIP docs\htmlhelp\wx.chm
-zip %DAILY%\wx-docs-pdf.ZIP %DAILY%\in\wx.pdf
-zip %DAILY%\wx-docs-hlp.ZIP docs\winhelp\wx.hlp docs\winhelp\wx.cnt
-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.*
-zip %DAILY%\wx-docs-extra-chm.ZIP utils/tex2rtf/docs/*.chm docs/htmlhelp/*.chm 
-cd %DAILY%\in
-zip %DAILY%\wx-docs-extra-pdf.ZIP *.pdf -x wx.pdf
-
+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-%WXW_VER%-PDF.ZIP docs\pdf\*.pdf
+
+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
 
 echo setting S
-rem echo yes > net use t: /delete
-rem net use t: \\biolpc22\bake 
+echo yes > net use s: /delete
+net use s: \\biolpc22\bake 
+net use >> c:\temp.log
 
 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