Skip to content

Commit

Permalink
Merge pull request #10132 from tk0miya/10122_install_check_in_make.bat
Browse files Browse the repository at this point in the history
Fix #10122: make.bat should check the installation before help
  • Loading branch information
tk0miya committed Jan 30, 2022
2 parents 8d82b9c + 1301170 commit 07110b7
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 07110b7

Please sign in to comment.