Remove C++/C99-style comments.
[python.git] / Doc / make.bat
blob8e2be01b03f2163f8f7560729d01a74bea8f9ec7
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 if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v\r
8 \r
9 if "%1" EQU "" goto help\r
10 if "%1" EQU "html" goto build\r
11 if "%1" EQU "htmlhelp" goto build\r
12 if "%1" EQU "latex" goto build\r
13 if "%1" EQU "text" goto build\r
14 if "%1" EQU "suspicious" goto build\r
15 if "%1" EQU "linkcheck" goto build\r
16 if "%1" EQU "changes" goto build\r
17 if "%1" EQU "checkout" goto checkout\r
18 if "%1" EQU "update" goto update\r
20 :help\r
21 set this=%~n0\r
22 echo HELP\r
23 echo.\r
24 echo %this% checkout\r
25 echo %this% update\r
26 echo %this% html\r
27 echo %this% htmlhelp\r
28 echo %this% latex\r
29 echo %this% text\r
30 echo %this% suspicious\r
31 echo %this% linkcheck\r
32 echo %this% changes\r
33 echo.\r
34 goto end\r
36 :checkout\r
37 svn co %SVNROOT%/external/Sphinx-0.6.3/sphinx tools/sphinx\r
38 svn co %SVNROOT%/external/docutils-0.5/docutils tools/docutils\r
39 svn co %SVNROOT%/external/Jinja-2.1.1/jinja2 tools/jinja2\r
40 svn co %SVNROOT%/external/Pygments-1.1.1/pygments tools/pygments\r
41 goto end\r
43 :update\r
44 svn update tools/sphinx\r
45 svn update tools/docutils\r
46 svn update tools/jinja2\r
47 svn update tools/pygments\r
48 goto end\r
50 :build\r
51 if not exist build mkdir build\r
52 if not exist build\%1 mkdir build\%1\r
53 if not exist build\doctrees mkdir build\doctrees\r
54 cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*\r
55 if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp\r
56 goto end\r
58 :end\r