X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc48c73f3cc8c2359831fe53c8eec90e958e605a..cf7f7d5d96c178d35ceb96fe74ea3eb13dd009de:/build/script/win_docs.bat?ds=sidebyside diff --git a/build/script/win_docs.bat b/build/script/win_docs.bat index 9daf49af7b..3e68c8ac0c 100644 --- a/build/script/win_docs.bat +++ b/build/script/win_docs.bat @@ -1,74 +1,93 @@ +rem Uncomment the next line to set the version; used also in wxWidgets.iss +rem SET WXW_VER=2.9.0-rc1 +if (%WXW_VER%)==() SET WXW_VER=SVN + +echo docs building for %WXW_VER% rem This builds the docs in %WXWIN% in a number of formats rem and a clean inno setup in a second tree -rem it uses a number of tools nmake, gnuwin32 zip, ghostscript, MS word, cvsNT +rem it uses a number of tools nmake, gnuwin32 zip & dos2unix, ghostscript, MS word, cvsNT rem cvs is in the path already from CVSNT install rem writes a log file in c:\ -set WXWIN=c:\wx\wxWidgets -set PATH=%PATH%;C:\wx\wxWidg~1.3\utils\tex2rtf\src\vc_based;C:\wx\GnuWin32\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1 -set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin -echo %PATH% >> c:\temp.log +echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log -rem update wxwidgets (holds docs) and inno (cvs wxMSW module only) -c: -cd %WXWIN% -cvs up -P -d -cd \wx\inno\wxWidgets -cvs up -P -echo CVS update > c:\temp.log +set WXWIN=c:\wx\wxWidgets +set DAILY=c:\daily +set INNO=c:\wx\inno\wxWidgets +rem svn already in my path... +set PATH=%PATH%;c:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1 -rem add nmake to the path and build the docs -call \vc6 echo %PATH% >> c:\temp.log -SET >> c:\temp.log -cd %WXWIN%\build\script -nmake -f makedocs.vc cleandocs -nmake -f makedocs.vc alldocs - -del c:\daily\in\*.p* -echo starting word >> c:\temp.log -start /WAIT winword /mwx_ps - +rem add bakefile build... +set PATH=%PATH%;C:\wx\Bakefile -echo cvs doc up part 2 >> c:\temp.log - -rem use ghostscript ps2pdf - add extra path first -rem set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin -rem set PATH=%PATH%;C:\wx\GnuWin32\bin;C:\PROGRA~1\INNOSE~1 +SET >> c:\temp.log -cd \daily\in -call ps2pdf wx.ps >> c:\temp.log -call ps2pdf fl.ps >> c:\temp.log -call ps2pdf gizmos.ps >> c:\temp.log -call ps2pdf mmedia.ps >> c:\temp.log -call ps2pdf ogl.ps >> c:\temp.log -call ps2pdf svg.ps >> c:\temp.log -call ps2pdf tex2rtf.ps >> c:\temp.log +rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only) +c: +cd %WXWIN% +svn cleanup >> c:\temp.log +svn up >> c:\temp.log + +rem now inno +cd %INNO% >> c:\temp.log +svn cleanup >> c:\temp.log +svn up >> c:\temp.log + +if exist include\wx\msw\setup.h del include\wx\msw\setup.h +if exist include\wx\univ\setup.h del include\wx\univ\setup.h + +rem for cygwin these need to be in unix format +del configure +del config.guess +del config.sub +svn up configure +svn up config.guess +svn up config.sub +dos2unix configure +dos2unix config.guess +dos2unix config.sub + +copy include\wx\msw\setup0.h include\wx\msw\setup.h +copy include\wx\univ\setup0.h include\wx\univ\setup.h +echo SVN update >> c:\temp.log + +rem just build the formats not in the SVN to keep down the .#makefile... +cd %INNO%\build\bakefiles +del .bakefile_gen.state +bakefile_gen -k -f dmars,dmars_smake,msevc4prj >> c:\temp.log + + + +rem make and copy chm to inno +rem Now create standalone copies of docs (chm and htb) +cd %WXWIN%\docs\doxygen +del out\html\*.html +del out\html\*.htb +del out\*.chm +call regen chm + + +cd %WXWIN%\docs\doxygen\out +zip wxWidgets-%WXW_VER%-chm.zip wx.chm +copy wxWidgets-%WXW_VER%-chm.zip %DAILY% +cd html +del *.dot +del *.md5 +zip -r wx.htb *.* +zip wxWidgets-%WXW_VER%-htb.zip wx.htb +copy wxWidgets-%WXW_VER%-htb.zip %DAILY% + + +mkdir %INNO%\docs\htmlhelp +copy %WXWIN%\docs\doxygen\out\wx.chm \wx\inno\wx29b\docs\htmlhelp\wx.chm 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 C:\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 - - -echo setting S -rem echo yes > net use s: /delete -net use s: \\biolpc22\bake - -copy \daily\*.ZIP s:\bkl-cronjob\archives\win -copy \daily\*.exe s:\bkl-cronjob\archives\win\*.EXE - +echo docs built for %WXW_VER% +echo docs built for %WXW_VER% >> c:\temp.log