use pushd and popd to enable bat build from different dir #2215 (now with correct line endings)

This commit is contained in:
Timotheus Kampik 2016-10-28 23:37:50 +02:00
parent ef73ecefb2
commit ed87e531bd
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
@ -31,4 +33,4 @@ goto end
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd

View File

@ -2,6 +2,8 @@
REM Command file for Sphinx documentation
pushd %~dp0
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
@ -279,4 +281,4 @@ if "%1" == "dummy" (
)
:end
popd