4
set SVNROOT=http://svn.python.org/projects
5
if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
6
if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
8
if "%1" EQU "" goto help
9
if "%1" EQU "html" goto build
10
if "%1" EQU "htmlhelp" goto build
11
if "%1" EQU "web" goto build
12
if "%1" EQU "webrun" goto webrun
13
if "%1" EQU "checkout" goto checkout
14
if "%1" EQU "update" goto update
19
echo builddoc checkout
22
echo builddoc htmlhelp
29
svn co %SVNROOT%/doctools/trunk/sphinx tools/sphinx
30
svn co %SVNROOT%/external/docutils-0.4/docutils tools/docutils
31
svn co %SVNROOT%/external/Jinja-1.1/jinja tools/jinja
32
svn co %SVNROOT%/external/Pygments-0.9/pygments tools/pygments
36
svn update tools/sphinx
37
svn update tools/docutils
38
svn update tools/jinja
39
svn update tools/pygments
43
if not exist build mkdir build
44
if not exist build\%1 mkdir build\%1
45
if not exist build\doctrees mkdir build\doctrees
46
cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%1
47
if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\pydoc.hhp
52
%PYTHON% -m sphinx.web build\web