blob: a1291bec1e95d67d57980f98731b89501b52d454 [file] [log] [blame]
Georg Brandl3fd0c442008-02-29 18:21:29 +00001@@echo off
Christian Heimesbd865db2008-01-18 11:58:50 +00002setlocal
3
4set SVNROOT=http://svn.python.org/projects
Georg Brandl3fd0c442008-02-29 18:21:29 +00005if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
6if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
Christian Heimesbd865db2008-01-18 11:58:50 +00007
8if "%1" EQU "" goto help
9if "%1" EQU "html" goto build
10if "%1" EQU "htmlhelp" goto build
Georg Brandl700cf282009-01-04 10:23:49 +000011if "%1" EQU "latex" goto build
12if "%1" EQU "text" goto build
13if "%1" EQU "suspicious" goto build
14if "%1" EQU "linkcheck" goto build
15if "%1" EQU "changes" goto build
Christian Heimesbd865db2008-01-18 11:58:50 +000016if "%1" EQU "checkout" goto checkout
17if "%1" EQU "update" goto update
18
19:help
Georg Brandl700cf282009-01-04 10:23:49 +000020set this=%~n0
Christian Heimesbd865db2008-01-18 11:58:50 +000021echo HELP
22echo.
Georg Brandl700cf282009-01-04 10:23:49 +000023echo %this% checkout
24echo %this% update
25echo %this% html
26echo %this% htmlhelp
27echo %this% latex
28echo %this% text
29echo %this% suspicious
30echo %this% linkcheck
31echo %this% changes
Christian Heimesbd865db2008-01-18 11:58:50 +000032echo.
33goto end
34
35:checkout
36svn co %SVNROOT%/doctools/trunk/sphinx tools/sphinx
Georg Brandl700cf282009-01-04 10:23:49 +000037svn co %SVNROOT%/external/docutils-0.5/docutils tools/docutils
38svn co %SVNROOT%/external/Jinja-1.2/jinja tools/jinja
39svn co %SVNROOT%/external/Pygments-0.11.1/pygments tools/pygments
Christian Heimesbd865db2008-01-18 11:58:50 +000040goto end
41
42:update
43svn update tools/sphinx
44svn update tools/docutils
Georg Brandl8ffb5732008-04-13 20:51:27 +000045svn update tools/jinja
Christian Heimesbd865db2008-01-18 11:58:50 +000046svn update tools/pygments
47goto end
48
49:build
50if not exist build mkdir build
51if not exist build\%1 mkdir build\%1
52if not exist build\doctrees mkdir build\doctrees
Georg Brandl700cf282009-01-04 10:23:49 +000053cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
Georg Brandl3fd0c442008-02-29 18:21:29 +000054if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\pydoc.hhp
Christian Heimesbd865db2008-01-18 11:58:50 +000055goto end
56
57:webrun
58set PYTHONPATH=tools
59%PYTHON% -m sphinx.web build\web
60goto end
61
62:end