]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-33670: Expose Sphinx errorlevel (GH-7156). (GH-7201)
authorAndrés Delfino <adelfino@gmail.com>
Tue, 29 May 2018 22:30:50 +0000 (19:30 -0300)
committerSteve Dower <steve.dower@microsoft.com>
Tue, 29 May 2018 22:30:50 +0000 (15:30 -0700)
(cherry picked from commit 8c1ad0c4f69390fded09012e1ed5242c45753bb4)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/make.bat

index ae6224ab4ca3f6fda4eba3472d151fa41a3c4d53..d50c0c36ed4b25e005b7be35b09a144d0825335c 100644 (file)
@@ -13,7 +13,7 @@ if not defined SPHINXBUILD if defined PYTHON (
         %PYTHON% -m pip install sphinx
         if errorlevel 1 exit /B
     )
-    set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sphinx.main()"
+    set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sys.exit(sphinx.main())"
 )
 
 if not defined PYTHON set PYTHON=py