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
|
2006-11-22 11:10:14 -05:00
|
|
|
if (%WXW_VER%)==() SET WXW_VER=CVS
|
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
|
2006-05-09 08:52:03 -04:00
|
|
|
set PATH=%PATH%;C:\wx\wxw26b\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%
|
|
|
|
cvs up -P -d
|
2006-12-20 04:45:42 -05:00
|
|
|
|
|
|
|
rem now inno
|
2005-09-06 09:31:17 -04:00
|
|
|
cd \wx\inno\wxWidgets
|
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
|
2005-09-06 09:31:17 -04:00
|
|
|
cvs up -P
|
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
|
2005-09-08 10:02:57 -04:00
|
|
|
echo CVS update >> c:\temp.log
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2006-11-20 04:12:13 -05:00
|
|
|
rem just build the formats not in the CVS to keep down the .#makefile...
|
2006-11-10 08:19:03 -05:00
|
|
|
cd \wx\inno\wxWidgets\build\bakefiles
|
|
|
|
del .bakefile_gen.state
|
2006-11-20 04:12:13 -05:00
|
|
|
bakefile_gen -f dmars,dmars,msevc4prj,dmars_smake >> 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-03-14 06:39:58 -04:00
|
|
|
zip -r %DAILY%\wxWidgets-%WXW_VER%-HTML.zip 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
|
|
|
|
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/*
|
|
|
|
|
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-20 04:12:13 -05:00
|
|
|
rem echo setting S
|
|
|
|
rem echo yes > net use s: /delete
|
|
|
|
rem net use s: \\biolpc22\bake
|
|
|
|
rem net use >> c:\temp.log
|
2005-09-06 09:31:17 -04:00
|
|
|
|
2006-11-20 04:12:13 -05:00
|
|
|
rem copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
|
|
|
|
rem copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.exe
|
|
|
|
rem dir s: /od >> 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
|
|
|
|
|
|
|
|