]> git.saurik.com Git - wxWidgets.git/blame - build/script/win_docs.bat
remove contrib docs from daily builds
[wxWidgets.git] / build / script / win_docs.bat
CommitLineData
16e72edb 1rem Uncomment the next line to set the version; used also in wxWidgets.iss
61d31e95 2rem SET WXW_VER=2.9.0
520711e6 3if (%WXW_VER%)==() SET WXW_VER=CVS
cc48c73f 4
7b543b99
CE
5echo docs building for %WXW_VER%
6
cc48c73f
CE
7rem This builds the docs in %WXWIN% in a number of formats
8rem and a clean inno setup in a second tree
5b204a08 9rem it uses a number of tools nmake, gnuwin32 zip & dos2unix, ghostscript, MS word, cvsNT
cc48c73f
CE
10rem cvs is in the path already from CVSNT install
11rem writes a log file in c:\
12
7b543b99 13echo Building wxWidgets-%WXW_VER% docs... > c:\temp.log
96a9f4e8 14
cc48c73f 15set WXWIN=c:\wx\wxWidgets
96a9f4e8 16set DAILY=c:\daily
3dbe49e1 17set PATH=%PATH%;C:\wx\wxw26b\utils\tex2rtf\src\vc_based;C:\wx\Gnu\bin;c:\progra~1\htmlhe~1;C:\PROGRA~1\INNOSE~1
cc48c73f 18set PATH=%PATH%;C:\Program Files\gs\gs8.51\lib;C:\Program Files\gs\gs8.51\bin
61d31e95
CE
19rem add nmake to the path to build the docs
20call \vc6
21echo %PATH% >> c:\temp.log
22rem add bakefile build...
23set PATH=%PATH%;C:\wx\Bakefile\src
24
25SET >> c:\temp.log
26
cc48c73f 27
5b204a08 28rem update wxwidgets (holds docs) and inno (cvs wxMSW setup.exe only)
cc48c73f
CE
29c:
30cd %WXWIN%
31cvs up -P -d
5b204a08
CE
32
33rem now inno
cc48c73f 34cd \wx\inno\wxWidgets
5b204a08 35del c*.*
24e9f36b 36if exist include\wx\msw\setup.h del include\wx\msw\setup.h
5b204a08 37if exist include\wx\univ\setup.h del include\wx\univ\setup.h
cc48c73f 38cvs up -P
5b204a08
CE
39dos2unix configure
40dos2unix config.guess
41dos2unix config.sub
24e9f36b 42copy include\wx\msw\setup0.h include\wx\msw\setup.h
5b204a08 43copy include\wx\univ\setup0.h include\wx\univ\setup.h
96a9f4e8 44echo CVS update >> c:\temp.log
cc48c73f 45
7b543b99 46rem just build the formats not in the CVS to keep down the .#makefile...
e83a2e04
CE
47cd \wx\inno\wxWidgets\build\bakefiles
48del .bakefile_gen.state
7b543b99 49bakefile_gen -f dmars,dmars,msevc4prj,dmars_smake >> c:\temp.log
56363ed0 50
cc48c73f 51
cc48c73f
CE
52cd %WXWIN%\build\script
53nmake -f makedocs.vc cleandocs
54nmake -f makedocs.vc alldocs
55
96a9f4e8 56del %DAILY%\in\*.p*
3dbe49e1
CE
57mkdir %WXWIN%\docs\pdf
58mkdir %WXWIN%\docs\htmlhelp
59mkdir %WXWIN%\docs\htb
cc48c73f
CE
60echo starting word >> c:\temp.log
61start /WAIT winword /mwx_ps
62
63
64echo cvs doc up part 2 >> c:\temp.log
65
96a9f4e8 66cd %DAILY%\in
cc48c73f 67call ps2pdf wx.ps >> c:\temp.log
cc48c73f
CE
68call ps2pdf tex2rtf.ps >> c:\temp.log
69
cc48c73f
CE
70echo Zipping
71cd %WXWIN%
7b543b99 72del %DAILY%\*.zip
61d31e95 73zip %DAILY%\wxWidgets-%WXW_VER%-CHM.zip docs\htmlhelp\wx.chm utils/tex2rtf/docs/*.chm
fdf19d28 74zip %DAILY%\wxWidgets-%WXW_VER%-HTB.zip docs\htb\*.htb utils/tex2rtf/docs/*.htb
61d31e95 75zip %DAILY%\wxWidgets-%WXW_VER%-HLP.zip docs\winhelp\wx.hlp docs\winhelp\wx.cnt utils/tex2rtf/docs/*.HLP utils/tex2rtf/docs/*.cnt
fdf19d28 76zip -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\*
16e72edb 77
61d31e95
CE
78del %DAILY%\*.tar.gz
79bsdtar zcvf %DAILY%\wxWidgets-%WXW_VER%-HTB.tar.gz docs/htb/*.htb utils/tex2rtf/docs/*.htb
80bsdtar 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/*
81
e4082155
CE
82cd %DAILY%\
83mkdir docs
84mkdir docs\pdf
85del docs\pdf\*.pdf
dba6243c 86move in\*.pdf docs\pdf
7b543b99 87zip wxWidgets-%WXW_VER%-PDF.zip docs\pdf\*.pdf
cc48c73f 88
e83a2e04 89rem copy chm to inno
c6f9d355 90cd %WXWIN%
e83a2e04 91mkdir c:\wx\inno\wxWidgets\docs\htmlhelp
16e72edb 92copy docs\htmlhelp\wx.chm \wx\inno\wxWidgets\docs\htmlhelp\wx.chm
56363ed0
CE
93cd %WXWIN%\build\script
94iscc wxwidgets.iss >> c:\temp.log
cc48c73f 95
7b543b99
CE
96rem echo setting S
97rem echo yes > net use s: /delete
98rem net use s: \\biolpc22\bake
99rem net use >> c:\temp.log
cc48c73f 100
7b543b99
CE
101rem copy %DAILY%\*.ZIP s:\bkl-cronjob\archives\win
102rem copy %DAILY%\*.exe s:\bkl-cronjob\archives\win\*.exe
103rem dir s: /od >> c:\temp.log
cc48c73f 104
00ea969c
CE
105echo docs built for %WXW_VER%
106echo docs built for %WXW_VER% >> c:\temp.log
cc48c73f
CE
107
108