mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10132 from tk0miya/10122_install_check_in_make.bat
Fix #10122: make.bat should check the installation before help
This commit is contained in:
commit
07110b7557
2
CHANGES
2
CHANGES
@ -21,6 +21,8 @@ Bugs fixed
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
* #10133: autodoc: Crashed when mocked module is used for type annotation
|
* #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
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -10,8 +10,6 @@ if "%SPHINXBUILD%" == "" (
|
|||||||
set SOURCEDIR={{ rsrcdir }}
|
set SOURCEDIR={{ rsrcdir }}
|
||||||
set BUILDDIR={{ rbuilddir }}
|
set BUILDDIR={{ rbuilddir }}
|
||||||
|
|
||||||
if "%1" == "" goto help
|
|
||||||
|
|
||||||
%SPHINXBUILD% >NUL 2>NUL
|
%SPHINXBUILD% >NUL 2>NUL
|
||||||
if errorlevel 9009 (
|
if errorlevel 9009 (
|
||||||
echo.
|
echo.
|
||||||
@ -25,6 +23,8 @@ if errorlevel 9009 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if "%1" == "" goto help
|
||||||
|
|
||||||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user