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