blob: 33d354cd7c4016f211f9bb935cae979eeb9edb07 [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
Benjamin Peterson28d88b42009-01-09 03:03:23 +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 Heimes04c420f2008-01-18 18:40:46 +000016if "%1" EQU "checkout" goto checkout
17if "%1" EQU "update" goto update
18
19:help
Benjamin Peterson28d88b42009-01-09 03:03:23 +000020set this=%~n0
Christian Heimes04c420f2008-01-18 18:40:46 +000021echo HELP
22echo.
Benjamin Peterson28d88b42009-01-09 03:03:23 +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 Heimes04c420f2008-01-18 18:40:46 +000032echo.
33goto end
34
35:checkout
36svn co %SVNROOT%/doctools/trunk/sphinx tools/sphinx
Benjamin Peterson28d88b42009-01-09 03:03:23 +000037svn co %SVNROOT%/external/docutils-0.5/docutils tools/docutils
38svn co %SVNROOT%/external/Jinja-2.1.1/jinja2 tools/jinja2
39svn co %SVNROOT%/external/Pygments-0.11.1/pygments tools/pygments
Christian Heimes04c420f2008-01-18 18:40:46 +000040goto end
41
42:update
43svn update tools/sphinx
44svn update tools/docutils
Benjamin Peterson28d88b42009-01-09 03:03:23 +000045svn update tools/jinja2
Christian Heimes04c420f2008-01-18 18:40:46 +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
Benjamin Peterson28d88b42009-01-09 03:03:23 +000053cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
Martin v. Löwis1561bab2008-02-29 19:39:25 +000054if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\pydoc.hhp
Christian Heimes04c420f2008-01-18 18:40:46 +000055goto end
56
Christian Heimes04c420f2008-01-18 18:40:46 +000057:end