Skip to content

Commit 4c4cde7

Browse files
committed
Issue python#21688: Merge with 3.4
2 parents 791e553 + 5989511 commit 4c4cde7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/make.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ if NOT "%PAPER%" == "" (
7676
cmd /C %SPHINXBUILD% %SPHINXOPTS% -b%1 -dbuild\doctrees . %BUILDDIR%\%*
7777

7878
if "%1" EQU "htmlhelp" (
79+
if not exist "%HTMLHELP%" (
80+
echo.
81+
echo.The HTML Help Workshop was not found. Set the HTMLHELP variable
82+
echo.to the path to hhc.exe or download and install it from
83+
echo.http://msdn.microsoft.com/en-us/library/ms669985
84+
rem Set errorlevel to 1 and exit
85+
cmd /C exit /b 1
86+
goto end
87+
)
7988
cmd /C "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
8089
rem hhc.exe seems to always exit with code 1, reset to 0 for less than 2
8190
if not errorlevel 2 cmd /C exit /b 0

0 commit comments

Comments
 (0)