The cgitb module had imports in its functions. This can cause deadlock with the
[python.git] / Doc / make.bat
blob33d354cd7c4016f211f9bb935cae979eeb9edb07
1 @@echo off\r
2 setlocal\r
3 \r
4 set SVNROOT=http://svn.python.org/projects\r
5 if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python\r
6 if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe\r
7 \r
8 if "%1" EQU "" goto help\r
9 if "%1" EQU "html" goto build\r
10 if "%1" EQU "htmlhelp" goto build\r
11 if "%1" EQU "latex" goto build\r
12 if "%1" EQU "text" goto build\r
13 if "%1" EQU "suspicious" goto build\r
14 if "%1" EQU "linkcheck" goto build\r
15 if "%1" EQU "changes" goto build\r
16 if "%1" EQU "checkout" goto checkout\r
17 if "%1" EQU "update" goto update\r
19 :help\r
20 set this=%~n0\r
21 echo HELP\r
22 echo.\r
23 echo %this% checkout\r
24 echo %this% update\r
25 echo %this% html\r
26 echo %this% htmlhelp\r
27 echo %this% latex\r
28 echo %this% text\r
29 echo %this% suspicious\r
30 echo %this% linkcheck\r
31 echo %this% changes\r
32 echo.\r
33 goto end\r
35 :checkout\r
36 svn co %SVNROOT%/doctools/trunk/sphinx tools/sphinx\r
37 svn co %SVNROOT%/external/docutils-0.5/docutils tools/docutils\r
38 svn co %SVNROOT%/external/Jinja-2.1.1/jinja2 tools/jinja2\r
39 svn co %SVNROOT%/external/Pygments-0.11.1/pygments tools/pygments\r
40 goto end\r
42 :update\r
43 svn update tools/sphinx\r
44 svn update tools/docutils\r
45 svn update tools/jinja2\r
46 svn update tools/pygments\r
47 goto end\r
49 :build\r
50 if not exist build mkdir build\r
51 if not exist build\%1 mkdir build\%1\r
52 if not exist build\doctrees mkdir build\doctrees\r
53 cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*\r
54 if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\pydoc.hhp\r
55 goto end\r
57 :end\r