blob: 504e4b58e47acc73c8f2836e617e48ab9589e7f2 [file] [log] [blame]
Martin v. Löwis1561bab2008-02-29 19:39:25 +00001@@echo off
Christian Heimes04c420f2008-01-18 18:40:46 +00002setlocal
3
4set SVNROOT=http://svn.python.org/projects
Martin v. Löwis1561bab2008-02-29 19:39:25 +00005if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
6if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
Christian Heimes04c420f2008-01-18 18:40:46 +00007
8if "%1" EQU "" goto help
9if "%1" EQU "html" goto build
10if "%1" EQU "htmlhelp" goto build
11if "%1" EQU "web" goto build
12if "%1" EQU "webrun" goto webrun
13if "%1" EQU "checkout" goto checkout
14if "%1" EQU "update" goto update
15
16:help
17echo HELP
18echo.
19echo builddoc checkout
20echo builddoc update
21echo builddoc html
22echo builddoc htmlhelp
23echo builddoc web
24echo builddoc webrun
25echo.
26goto end
27
28:checkout
29svn co %SVNROOT%/doctools/trunk/sphinx tools/sphinx
30svn co %SVNROOT%/external/docutils-0.4/docutils tools/docutils
31svn co %SVNROOT%/external/Pygments-0.9/pygments tools/pygments
32goto end
33
34:update
35svn update tools/sphinx
36svn update tools/docutils
37svn update tools/pygments
38goto end
39
40:build
41if not exist build mkdir build
42if not exist build\%1 mkdir build\%1
43if not exist build\doctrees mkdir build\doctrees
44cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%1
Martin v. Löwis1561bab2008-02-29 19:39:25 +000045if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\pydoc.hhp
Christian Heimes04c420f2008-01-18 18:40:46 +000046goto end
47
48:webrun
49set PYTHONPATH=tools
50%PYTHON% -m sphinx.web build\web
51goto end
52
53:end