2008-02-29 14:21:29 -04:00
|
|
|
@@echo off
|
2008-01-18 07:58:50 -04:00
|
|
|
setlocal
|
|
|
|
|
|
|
|
set SVNROOT=http://svn.python.org/projects
|
2008-02-29 14:21:29 -04:00
|
|
|
if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
|
|
|
|
if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
|
2009-04-05 13:30:43 -03:00
|
|
|
if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
|
2008-01-18 07:58:50 -04:00
|
|
|
|
|
|
|
if "%1" EQU "" goto help
|
|
|
|
if "%1" EQU "html" goto build
|
|
|
|
if "%1" EQU "htmlhelp" goto build
|
2009-01-04 06:23:49 -04:00
|
|
|
if "%1" EQU "latex" goto build
|
|
|
|
if "%1" EQU "text" goto build
|
|
|
|
if "%1" EQU "suspicious" goto build
|
|
|
|
if "%1" EQU "linkcheck" goto build
|
|
|
|
if "%1" EQU "changes" goto build
|
2008-01-18 07:58:50 -04:00
|
|
|
if "%1" EQU "checkout" goto checkout
|
|
|
|
if "%1" EQU "update" goto update
|
|
|
|
|
|
|
|
:help
|
2009-01-04 06:23:49 -04:00
|
|
|
set this=%~n0
|
2008-01-18 07:58:50 -04:00
|
|
|
echo HELP
|
|
|
|
echo.
|
2009-01-04 06:23:49 -04:00
|
|
|
echo %this% checkout
|
|
|
|
echo %this% update
|
|
|
|
echo %this% html
|
|
|
|
echo %this% htmlhelp
|
|
|
|
echo %this% latex
|
|
|
|
echo %this% text
|
|
|
|
echo %this% suspicious
|
|
|
|
echo %this% linkcheck
|
|
|
|
echo %this% changes
|
2008-01-18 07:58:50 -04:00
|
|
|
echo.
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:checkout
|
2009-11-13 19:11:54 -04:00
|
|
|
svn co %SVNROOT%/external/Sphinx-0.6.3/sphinx tools/sphinx
|
2009-01-04 06:23:49 -04:00
|
|
|
svn co %SVNROOT%/external/docutils-0.5/docutils tools/docutils
|
2009-01-04 18:03:10 -04:00
|
|
|
svn co %SVNROOT%/external/Jinja-2.1.1/jinja2 tools/jinja2
|
2009-01-04 06:23:49 -04:00
|
|
|
svn co %SVNROOT%/external/Pygments-0.11.1/pygments tools/pygments
|
2008-01-18 07:58:50 -04:00
|
|
|
goto end
|
|
|
|
|
|
|
|
:update
|
|
|
|
svn update tools/sphinx
|
|
|
|
svn update tools/docutils
|
2009-01-04 18:03:10 -04:00
|
|
|
svn update tools/jinja2
|
2008-01-18 07:58:50 -04:00
|
|
|
svn update tools/pygments
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:build
|
|
|
|
if not exist build mkdir build
|
|
|
|
if not exist build\%1 mkdir build\%1
|
|
|
|
if not exist build\doctrees mkdir build\doctrees
|
2009-01-04 06:23:49 -04:00
|
|
|
cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
|
2009-04-05 13:30:43 -03:00
|
|
|
if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
|
2008-01-18 07:58:50 -04:00
|
|
|
goto end
|
|
|
|
|
|
|
|
:end
|