|
1 | | -@@echooff |
2 | | -setlocal |
3 | | - |
4 | | -setSVNROOT=http://svn.python.org/projects |
5 | | -if"%PYTHON%"EQU""setPYTHON=..\pcbuild\python |
6 | | -if"%HTMLHELP%"EQU""setHTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe |
7 | | -if"%DISTVERSION%"EQU""for /f"usebackq"%%vin (`%PYTHON% tools/sphinxext/patchlevel.py`)dosetDISTVERSION=%%v |
8 | | - |
9 | | -if"%1"EQU""goto help |
10 | | -if"%1"EQU"html"goto build |
11 | | -if"%1"EQU"htmlhelp"goto build |
12 | | -if"%1"EQU"latex"goto build |
13 | | -if"%1"EQU"text"goto build |
14 | | -if"%1"EQU"suspicious"goto build |
15 | | -if"%1"EQU"linkcheck"goto build |
16 | | -if"%1"EQU"changes"goto build |
17 | | -if"%1"EQU"checkout"goto checkout |
18 | | -if"%1"EQU"update"goto update |
19 | | - |
20 | | -:help |
21 | | -setthis=%~n0 |
22 | | -echo HELP |
23 | | -echo. |
24 | | -echo%this% checkout |
25 | | -echo%this% update |
26 | | -echo%this% html |
27 | | -echo%this% htmlhelp |
28 | | -echo%this% latex |
29 | | -echo%this% text |
30 | | -echo%this% suspicious |
31 | | -echo%this% linkcheck |
32 | | -echo%this% changes |
33 | | -echo. |
34 | | -goto end |
35 | | - |
36 | | -:checkout |
37 | | -svn co%SVNROOT%/doctools/trunk/sphinx tools/sphinx |
38 | | -svn co%SVNROOT%/external/docutils-0.5/docutils tools/docutils |
39 | | -svn co%SVNROOT%/external/Jinja-2.1.1/jinja2 tools/jinja2 |
40 | | -svn co%SVNROOT%/external/Pygments-0.11.1/pygments tools/pygments |
41 | | -goto end |
42 | | - |
43 | | -:update |
44 | | -svn update tools/sphinx |
45 | | -svn update tools/docutils |
46 | | -svn update tools/jinja2 |
47 | | -svn update tools/pygments |
48 | | -goto end |
49 | | - |
50 | | -:build |
51 | | -ifnotexist buildmkdir build |
52 | | -ifnotexist build\%1mkdir build\%1 |
53 | | -ifnotexist build\doctreesmkdir build\doctrees |
54 | | -cmd /C%PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%* |
55 | | -if"%1"EQU"htmlhelp""%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp |
56 | | -goto end |
57 | | - |
58 | | -:end |
| 1 | +@@echooff |
| 2 | +setlocal |
| 3 | + |
| 4 | +setSVNROOT=http://svn.python.org/projects |
| 5 | +if"%PYTHON%"EQU""setPYTHON=..\pcbuild\python |
| 6 | +if"%HTMLHELP%"EQU""setHTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe |
| 7 | +if"%DISTVERSION%"EQU""for /f"usebackq"%%vin (`%PYTHON% tools/sphinxext/patchlevel.py`)dosetDISTVERSION=%%v |
| 8 | + |
| 9 | +if"%1"EQU""goto help |
| 10 | +if"%1"EQU"html"goto build |
| 11 | +if"%1"EQU"htmlhelp"goto build |
| 12 | +if"%1"EQU"latex"goto build |
| 13 | +if"%1"EQU"text"goto build |
| 14 | +if"%1"EQU"suspicious"goto build |
| 15 | +if"%1"EQU"linkcheck"goto build |
| 16 | +if"%1"EQU"changes"goto build |
| 17 | +if"%1"EQU"checkout"goto checkout |
| 18 | +if"%1"EQU"update"goto update |
| 19 | + |
| 20 | +:help |
| 21 | +setthis=%~n0 |
| 22 | +echo HELP |
| 23 | +echo. |
| 24 | +echo%this% checkout |
| 25 | +echo%this% update |
| 26 | +echo%this% html |
| 27 | +echo%this% htmlhelp |
| 28 | +echo%this% latex |
| 29 | +echo%this% text |
| 30 | +echo%this% suspicious |
| 31 | +echo%this% linkcheck |
| 32 | +echo%this% changes |
| 33 | +echo. |
| 34 | +goto end |
| 35 | + |
| 36 | +:checkout |
| 37 | +svn co%SVNROOT%/doctools/trunk/sphinx tools/sphinx |
| 38 | +svn co%SVNROOT%/external/docutils-0.5/docutils tools/docutils |
| 39 | +svn co%SVNROOT%/external/Jinja-2.1.1/jinja2 tools/jinja2 |
| 40 | +svn co%SVNROOT%/external/Pygments-0.11.1/pygments tools/pygments |
| 41 | +goto end |
| 42 | + |
| 43 | +:update |
| 44 | +svn update tools/sphinx |
| 45 | +svn update tools/docutils |
| 46 | +svn update tools/jinja2 |
| 47 | +svn update tools/pygments |
| 48 | +goto end |
| 49 | + |
| 50 | +:build |
| 51 | +ifnotexist buildmkdir build |
| 52 | +ifnotexist build\%1mkdir build\%1 |
| 53 | +ifnotexist build\doctreesmkdir build\doctrees |
| 54 | +cmd /C%PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%* |
| 55 | +if"%1"EQU"htmlhelp""%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp |
| 56 | +goto end |
| 57 | + |
| 58 | +:end |