Skip to content

Commit

Permalink
Fix #10122: make.bat should check the installation before help
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Jan 30, 2022
1 parent c75e43a commit 1301170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -21,6 +21,8 @@ Bugs fixed
----------

* #10133: autodoc: Crashed when mocked module is used for type annotation
* #10122: sphinx-build: make.bat does not check the installation of sphinx-build
command before showing help

Testing
--------
Expand Down
4 changes: 2 additions & 2 deletions sphinx/templates/quickstart/make.bat.new_t
Expand Up @@ -10,8 +10,6 @@ if "%SPHINXBUILD%" == "" (
set SOURCEDIR={{ rsrcdir }}
set BUILDDIR={{ rbuilddir }}

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
Expand All @@ -25,6 +23,8 @@ if errorlevel 9009 (
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

Expand Down

0 comments on commit 1301170

Please sign in to comment.