~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Doc/make.bat

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

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