build a 2.9.x windows setup file and chm and htb sets of docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
rem Uncomment the next line to set the version; used also in wxWidgets.iss
|
rem Uncomment the next line to set the version; used also in wxWidgets.iss
|
||||||
rem SET WXW_VER=2.9.0
|
rem SET WXW_VER=2.9.0-rc1
|
||||||
if (%WXW_VER%)==() SET WXW_VER=SVN
|
if (%WXW_VER%)==() SET WXW_VER=SVN
|
||||||
|
|
||||||
echo docs building for %WXW_VER%
|
echo docs building for %WXW_VER%
|
||||||
@@ -14,15 +14,14 @@ echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log
|
|||||||
|
|
||||||
set WXWIN=c:\wx\wxWidgets
|
set WXWIN=c:\wx\wxWidgets
|
||||||
set DAILY=c:\daily
|
set DAILY=c:\daily
|
||||||
|
set INNO=c:\wx\inno\wxWidgets
|
||||||
|
|
||||||
rem svn already in my path...
|
rem svn already in my path...
|
||||||
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
|
set PATH=%PATH%;c:\wx\Gnu\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
|
|
||||||
rem add nmake to the path to build the docs
|
|
||||||
call \vc6
|
|
||||||
echo %PATH% >> c:\temp.log
|
echo %PATH% >> c:\temp.log
|
||||||
rem add bakefile build...
|
rem add bakefile build...
|
||||||
set PATH=%PATH%;C:\wx\Bakefile\src
|
set PATH=%PATH%;C:\wx\Bakefile
|
||||||
|
|
||||||
SET >> c:\temp.log
|
SET >> c:\temp.log
|
||||||
|
|
||||||
@@ -34,67 +33,57 @@ svn cleanup >> c:\temp.log
|
|||||||
svn up >> c:\temp.log
|
svn up >> c:\temp.log
|
||||||
|
|
||||||
rem now inno
|
rem now inno
|
||||||
cd \wx\inno\wxWidgets >> c:\temp.log
|
cd %INNO% >> c:\temp.log
|
||||||
svn cleanup >> c:\temp.log
|
svn cleanup >> c:\temp.log
|
||||||
svn up >> c:\temp.log
|
svn up >> c:\temp.log
|
||||||
del c*.*
|
|
||||||
if exist include\wx\msw\setup.h del include\wx\msw\setup.h
|
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
|
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 configure
|
||||||
dos2unix config.guess
|
dos2unix config.guess
|
||||||
dos2unix config.sub
|
dos2unix config.sub
|
||||||
|
|
||||||
copy include\wx\msw\setup0.h include\wx\msw\setup.h
|
copy include\wx\msw\setup0.h include\wx\msw\setup.h
|
||||||
copy include\wx\univ\setup0.h include\wx\univ\setup.h
|
copy include\wx\univ\setup0.h include\wx\univ\setup.h
|
||||||
echo SVN update >> c:\temp.log
|
echo SVN update >> c:\temp.log
|
||||||
|
|
||||||
rem just build the formats not in the SVN to keep down the .#makefile...
|
rem just build the formats not in the SVN to keep down the .#makefile...
|
||||||
cd \wx\inno\wxWidgets\build\bakefiles
|
cd %INNO%\build\bakefiles
|
||||||
del .bakefile_gen.state
|
del .bakefile_gen.state
|
||||||
bakefile_gen -f dmars,dmars_smake,msevc4prj >> c:\temp.log
|
bakefile_gen -k -f dmars,dmars_smake,msevc4prj >> c:\temp.log
|
||||||
|
|
||||||
|
|
||||||
cd %WXWIN%\build\script
|
|
||||||
nmake -f makedocs.vc cleandocs
|
|
||||||
nmake -f makedocs.vc alldocs
|
|
||||||
|
|
||||||
del %DAILY%\in\*.p*
|
rem make and copy chm to inno
|
||||||
mkdir %WXWIN%\docs\pdf
|
rem Now create standalone copies of docs (chm and htb)
|
||||||
mkdir %WXWIN%\docs\htmlhelp
|
cd %WXWIN%\docs\doxygen
|
||||||
mkdir %WXWIN%\docs\htb
|
del out\html\*.html
|
||||||
echo starting word >> c:\temp.log
|
del out\html\*.htb
|
||||||
start /WAIT winword /mwx_ps
|
del out\*.chm
|
||||||
|
call regen chm
|
||||||
|
|
||||||
|
|
||||||
echo cvs doc up part 2 >> c:\temp.log
|
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%
|
||||||
|
|
||||||
cd %DAILY%\in
|
|
||||||
call ps2pdf wx.ps >> c:\temp.log
|
|
||||||
call ps2pdf tex2rtf.ps >> c:\temp.log
|
|
||||||
|
|
||||||
echo Zipping
|
mkdir %INNO%\docs\htmlhelp
|
||||||
cd %WXWIN%
|
copy %WXWIN%\docs\doxygen\out\wx.chm \wx\inno\wx29b\docs\htmlhelp\wx.chm
|
||||||
del %DAILY%\*.zip
|
|
||||||
zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm
|
|
||||||
zip %DAILY%\wxWidgets-%WXW_VER%-HTB.zip docs\htb\*.htb utils/tex2rtf/docs/*.htb
|
|
||||||
zip %DAILY%\wxWidgets-%WXW_VER%-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt
|
|
||||||
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\*
|
|
||||||
|
|
||||||
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/* utils/tex2rtf/docs/html/*
|
|
||||||
|
|
||||||
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
|
cd %WXWIN%\build\script
|
||||||
iscc wxwidgets.iss >> c:\temp.log
|
iscc wxwidgets.iss >> c:\temp.log
|
||||||
|
|
||||||
|
@@ -1,17 +1,19 @@
|
|||||||
; Script generated by the Inno Setup Script Wizard.
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
|
#define INNODIR GetENV("INNO")
|
||||||
|
|
||||||
#if GetEnv("WXW_VER") == "CVS"
|
#if GetEnv("WXW_VER") == "CVS"
|
||||||
#define INFOFILE "C:\wx\inno\wxWidgets\BuildSVN.txt"
|
#define INFOFILE GetENV("INNO") + "\BuildSVN.txt"
|
||||||
#define WX_VERSION "SVN"
|
#define WX_VERSION "SVN"
|
||||||
#else
|
#else
|
||||||
#define INFOFILE "C:\wx\inno\wxWidgets\docs\msw\install.txt"
|
#define INFOFILE GetENV("INNO") + "\docs\msw\install.txt"
|
||||||
#define WX_VERSION GetENV("WXW_VER")
|
#define WX_VERSION GetENV("WXW_VER")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SETUPFILENAME "wxMSW-" + GetENV("WXW_VER") + "-Setup"
|
#define SETUPFILENAME "wxMSW-" + GetENV("WXW_VER") + "-Setup"
|
||||||
|
|
||||||
#define INNODIR "C:\wx\inno\wxWidgets"
|
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
AppName=wxWidgets
|
AppName=wxWidgets
|
||||||
|
Reference in New Issue
Block a user