summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-05 16:30:43 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-05 16:30:43 (GMT)
commit4af280ee982060fa1230d492a616758fe41096de (patch)
tree7b1984eea37e91d2a25c4f9c38dbca00f9747bfe /Doc
parentd4315191ca25ef510243976d9836d65fde6e45d4 (diff)
downloadcpython-4af280ee982060fa1230d492a616758fe41096de.zip
cpython-4af280ee982060fa1230d492a616758fe41096de.tar.gz
cpython-4af280ee982060fa1230d492a616758fe41096de.tar.bz2
#5444: adapt make.bat to new htmlhelp output file name.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/make.bat3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/make.bat b/Doc/make.bat
index 33d354c..2e2a2de 100644
--- a/Doc/make.bat
+++ b/Doc/make.bat
@@ -4,6 +4,7 @@ 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
@@ -51,7 +52,7 @@ 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\pydoc.hhp
+if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
goto end
:end