2006-11-11 07:00:30 -05:00
|
|
|
rem Uncomment the next line to set the version; used also in wxWidgets.iss
|
2007-03-29 05:17:36 -04:00
|
|
|
rem SET WXW_VER=2.9.0
|
2007-07-17 09:24:03 -04:00
|
|
|
if (%WXW_VER%)==() SET WXW_VER=SVN
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2006-11-20 04:12:13 -05:00
|
|
|
echo docs building for %WXW_VER%
|
|
|
|
|
2005-09-06 09:31:17 -04:00
|
|
|
rem This builds the docs in %WXWIN% in a number of formats
|
|
|
|
rem and a clean inno setup in a second tree
|
2006-12-20 04:45:42 -05:00
|
|
|
rem it uses a number of tools nmake, gnuwin32 zip & dos2unix, ghostscript, MS word, cvsNT
|
2005-09-06 09:31:17 -04:00
|
|
|
rem cvs is in the path already from CVSNT install
|
|
|
|
rem writes a log file in c:\
|
|
|
|
|
2006-11-20 04:12:13 -05:00
|
|
|
echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log
|
2005-09-08 10:02:57 -04:00
|
|
|
|
2005-09-06 09:31:17 -04:00
|
|
|
set WXWIN=c:\wx\wxWidgets
|
2005-09-08 10:02:57 -04:00
|
|
|
set DAILY=c:\daily
|
2007-06-26 13:01:51 -04:00
|
|
|
|
|
|
|
rem svn already in my path...
|
2007-10-30 06:22:33 -04:00
|
|
|
set PATH=%PATH%;C:\wx\WXWIDG~1.0\utils\tex2rtf\src\vc_based;c:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
|
2005-09-06 09:31:17 -04:00
|
|
|
set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
|
2007-03-29 05:17:36 -04:00
|
|
|
rem add nmake to the path to build the docs
|
|
|
|
call \vc6
|
|
|
|
echo %PATH% >> c:\temp.log
|
|
|
|
rem add bakefile build...
|
|
|
|
set PATH=%PATH%;C:\wx\Bakefile\src
|
|
|
|
|
|
|
|
SET >> c:\temp.log
|
|
|
|
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2006-12-20 04:45:42 -05:00
|
|
|
rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only)
|
2005-09-06 09:31:17 -04:00
|
|
|
c:
|
|
|
|
cd %WXWIN%
|
2007-07-17 09:24:03 -04:00
|
|
|
svn cleanup >> c:\temp.log
|
|
|
|
svn up >> c:\temp.log
|
2006-12-20 04:45:42 -05:00
|
|
|
|
|
|
|
rem now inno
|
2007-07-17 09:24:03 -04:00
|
|
|
cd \wx\inno\wxWidgets >> c:\temp.log
|
2007-10-30 06:22:33 -04:00
|
|
|
svn cleanup >> c:\temp.log
|
|
|
|
svn up >> c:\temp.log
|
2006-12-20 04:45:42 -05:00
|
|
|
del c*.*
|
2006-11-27 09:12:57 -05:00
|
|
|
if exist include\wx\msw\setup.h del include\wx\msw\setup.h
|
2006-12-20 04:45:42 -05:00
|
|
|
if exist include\wx\univ\setup.h del include\wx\univ\setup.h
|
2007-10-30 06:22:33 -04:00
|
|
|
|
2006-12-20 04:45:42 -05:00
|
|
|
dos2unix configure
|
|
|
|
dos2unix config.guess
|
|
|
|
dos2unix config.sub
|
2006-11-27 09:12:57 -05:00
|
|
|
copy include\wx\msw\setup0.h include\wx\msw\setup.h
|
2006-12-20 04:45:42 -05:00
|
|
|
copy include\wx\univ\setup0.h include\wx\univ\setup.h
|
2007-07-17 09:24:03 -04:00
|
|
|
echo SVN update >> c:\temp.log
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2007-07-17 09:24:03 -04:00
|
|
|
rem just build the formats not in the SVN to keep down the .#makefile...
|
2006-11-10 08:19:03 -05:00
|
|
|
cd \wx\inno\wxWidgets\build\bakefiles
|
|
|
|
del .bakefile_gen.state
|
2007-06-27 06:45:12 -04:00
|
|
|
bakefile_gen -f dmars,dmars_smake,msevc4prj >> c:\temp.log
|
2006-11-10 06:36:04 -05:00
|
|
|
|
2005-09-06 09:31:17 -04:00
|
|
|
|
|
|
|
cd %WXWIN%\build\script
|
|
|
|
nmake -f makedocs.vc cleandocs
|
|
|
|
nmake -f makedocs.vc alldocs
|
|
|
|
|
2005-09-08 10:02:57 -04:00
|
|
|
del %DAILY%\in\*.p*
|
2006-05-09 08:52:03 -04:00
|
|
|
mkdir %WXWIN%\docs\pdf
|
|
|
|
mkdir %WXWIN%\docs\htmlhelp
|
|
|
|
mkdir %WXWIN%\docs\htb
|
2005-09-06 09:31:17 -04:00
|
|
|
echo starting word >> c:\temp.log
|
|
|
|
start /WAIT winword /mwx_ps
|
|
|
|
|
|
|
|
|
|
|
|
echo cvs doc up part 2 >> c:\temp.log
|
|
|
|
|
2005-09-08 10:02:57 -04:00
|
|
|
cd %DAILY%\in
|
2005-09-06 09:31:17 -04:00
|
|
|
call ps2pdf wx.ps >> c:\temp.log
|
|
|
|
call ps2pdf tex2rtf.ps >> c:\temp.log
|
|
|
|
|
|
|
|
echo Zipping
|
|
|
|
cd %WXWIN%
|
2006-11-20 04:12:13 -05:00
|
|
|
del %DAILY%\*.zip
|
2007-03-29 05:17:36 -04:00
|
|
|
zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm
|
2007-03-14 06:39:58 -04:00
|
|
|
zip %DAILY%\wxWidgets-%WXW_VER%-HTB.zip docs\htb\*.htb utils/tex2rtf/docs/*.htb
|
2007-03-29 05:17:36 -04:00
|
|
|
zip %DAILY%\wxWidgets-%WXW_VER%-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt
|
2007-04-02 16:35:35 -04:00
|
|
|
zip -r %DAILY%\wxWidgets-%WXW_VER%-HTML.zip docs\html\* utils\tex2rtf\docs\html\* -x CVS -x *.con -x *.hh* -x *.ref -x *.htx -x *.cn1 -x docs\html\CVS\*
|
2006-11-11 07:00:30 -05:00
|
|
|
|
2007-03-29 05:17:36 -04:00
|
|
|
del %DAILY%\*.tar.gz
|
|
|
|
bsdtar zcvf %DAILY%\wxWidgets-%WXW_VER%-HTB.tar.gz docs/htb/*.htb utils/tex2rtf/docs/*.htb
|
2007-04-02 16:35:35 -04:00
|
|
|
bsdtar zcvf %DAILY%\wxWidgets-%WXW_VER%-HTML.tar.gz --exclude CVS --exclude *.con --exclude *.hh* --exclude *.ref --exclude *.htx --exclude *.cn1 --exclude docs/html/CVS/* docs/html/* utils/tex2rtf/docs/html/*
|
2007-03-29 05:17:36 -04:00
|
|
|
|
2006-09-07 10:49:23 -04:00
|
|
|
cd %DAILY%\
|
|
|
|
mkdir docs
|
|
|
|
mkdir docs\pdf
|
|
|
|
del docs\pdf\*.pdf
|
2006-09-26 04:03:13 -04:00
|
|
|
move in\*.pdf docs\pdf
|
2006-11-20 04:12:13 -05:00
|
|
|
zip wxWidgets-%WXW_VER%-PDF.zip docs\pdf\*.pdf
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2006-11-10 08:19:03 -05:00
|
|
|
rem copy chm to inno
|
2006-11-11 11:54:56 -05:00
|
|
|
cd %WXWIN%
|
2006-11-10 08:19:03 -05:00
|
|
|
mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
|
2006-11-11 07:00:30 -05:00
|
|
|
copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
|
2006-11-10 06:36:04 -05:00
|
|
|
cd %WXWIN%\build\script
|
|
|
|
iscc wxwidgets.iss >> c:\temp.log
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2006-11-10 10:35:14 -05:00
|
|
|
echo docs built for %WXW_VER%
|
|
|
|
echo docs built for %WXW_VER% >> c:\temp.log
|
2005-09-06 09:31:17 -04:00
|
|
|
|
|
|
|
|