make.bat revision 49857f8a93564e68a31949ab7498dd1c6bd122b0
1@@echo off
2setlocal
3
4set SVNROOT=http://svn.python.org/projects
5if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
6if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
7if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
8
9if "%1" EQU "" goto help
10if "%1" EQU "html" goto build
11if "%1" EQU "htmlhelp" goto build
12if "%1" EQU "latex" goto build
13if "%1" EQU "text" goto build
14if "%1" EQU "suspicious" goto build
15if "%1" EQU "linkcheck" goto build
16if "%1" EQU "changes" goto build
17if "%1" EQU "checkout" goto checkout
18if "%1" EQU "update" goto update
19
20:help
21set this=%~n0
22echo HELP
23echo.
24echo %this% checkout
25echo %this% update
26echo %this% html
27echo %this% htmlhelp
28echo %this% latex
29echo %this% text
30echo %this% suspicious
31echo %this% linkcheck
32echo %this% changes
33echo.
34goto end
35
36:checkout
37svn co %SVNROOT%/external/Sphinx-1.0.7/sphinx tools/sphinx
38svn co %SVNROOT%/external/docutils-0.6/docutils tools/docutils
39svn co %SVNROOT%/external/Jinja-2.3.1/jinja2 tools/jinja2
40svn co %SVNROOT%/external/Pygments-1.3.1/pygments tools/pygments
41goto end
42
43:update
44svn update tools/sphinx
45svn update tools/docutils
46svn update tools/jinja2
47svn update tools/pygments
48goto end
49
50:build
51if not exist build mkdir build
52if not exist build\%1 mkdir build\%1
53if not exist build\doctrees mkdir build\doctrees
54cmd /C %PYTHON% --version
55cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
56if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
57goto end
58
59:end
60