Update to 2.7.3
[profile/ivi/python.git] / Doc / make.bat
index fbae42c..d234e77 100644 (file)
@@ -1,58 +1,58 @@
-@@echo off\r
-setlocal\r
-\r
-set SVNROOT=http://svn.python.org/projects\r
-if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python\r
-if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe\r
-if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v\r
-\r
-if "%1" EQU "" goto help\r
-if "%1" EQU "html" goto build\r
-if "%1" EQU "htmlhelp" goto build\r
-if "%1" EQU "latex" goto build\r
-if "%1" EQU "text" goto build\r
-if "%1" EQU "suspicious" goto build\r
-if "%1" EQU "linkcheck" goto build\r
-if "%1" EQU "changes" goto build\r
-if "%1" EQU "checkout" goto checkout\r
-if "%1" EQU "update" goto update\r
-\r
-:help\r
-set this=%~n0\r
-echo HELP\r
-echo.\r
-echo %this% checkout\r
-echo %this% update\r
-echo %this% html\r
-echo %this% htmlhelp\r
-echo %this% latex\r
-echo %this% text\r
-echo %this% suspicious\r
-echo %this% linkcheck\r
-echo %this% changes\r
-echo.\r
-goto end\r
-\r
-:checkout\r
-svn co %SVNROOT%/external/Sphinx-0.6.7/sphinx tools/sphinx\r
-svn co %SVNROOT%/external/docutils-0.6/docutils tools/docutils\r
-svn co %SVNROOT%/external/Jinja-2.3.1/jinja2 tools/jinja2\r
-svn co %SVNROOT%/external/Pygments-1.3.1/pygments tools/pygments\r
-goto end\r
-\r
-:update\r
-svn update tools/sphinx\r
-svn update tools/docutils\r
-svn update tools/jinja2\r
-svn update tools/pygments\r
-goto end\r
-\r
-:build\r
-if not exist build mkdir build\r
-if not exist build\%1 mkdir build\%1\r
-if not exist build\doctrees mkdir build\doctrees\r
-cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*\r
-if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp\r
-goto end\r
-\r
-:end\r
+@@echo off
+setlocal
+
+set SVNROOT=http://svn.python.org/projects
+if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
+if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
+if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
+
+if "%1" EQU "" goto help
+if "%1" EQU "html" goto build
+if "%1" EQU "htmlhelp" goto build
+if "%1" EQU "latex" goto build
+if "%1" EQU "text" goto build
+if "%1" EQU "suspicious" goto build
+if "%1" EQU "linkcheck" goto build
+if "%1" EQU "changes" goto build
+if "%1" EQU "checkout" goto checkout
+if "%1" EQU "update" goto update
+
+:help
+set this=%~n0
+echo HELP
+echo.
+echo %this% checkout
+echo %this% update
+echo %this% html
+echo %this% htmlhelp
+echo %this% latex
+echo %this% text
+echo %this% suspicious
+echo %this% linkcheck
+echo %this% changes
+echo.
+goto end
+
+:checkout
+svn co %SVNROOT%/external/Sphinx-0.6.7/sphinx tools/sphinx
+svn co %SVNROOT%/external/docutils-0.6/docutils tools/docutils
+svn co %SVNROOT%/external/Jinja-2.3.1/jinja2 tools/jinja2
+svn co %SVNROOT%/external/Pygments-1.3.1/pygments tools/pygments
+goto end
+
+:update
+svn update tools/sphinx
+svn update tools/docutils
+svn update tools/jinja2
+svn update tools/pygments
+goto end
+
+:build
+if not exist build mkdir build
+if not exist build\%1 mkdir build\%1
+if not exist build\doctrees mkdir build\doctrees
+cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
+if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
+goto end
+
+:end