mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Fix `make.bat latexpdf mechanism to cd` back to the build directory. (see #1520)
Set ``%BUILDDIR%`` to an absolute path using the common ``%~dp0`` trick.
This commit is contained in:
@@ -637,7 +637,7 @@ REM Command file for Sphinx documentation
|
||||
if "%%SPHINXBUILD%%" == "" (
|
||||
\tset SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=%(rbuilddir)s
|
||||
set BUILDDIR=%%~dp0%(rbuilddir)s
|
||||
set ALLSPHINXOPTS=-d %%BUILDDIR%%/doctrees %%SPHINXOPTS%% %(rsrcdir)s
|
||||
set I18NSPHINXOPTS=%%SPHINXOPTS%% %(rsrcdir)s
|
||||
if NOT "%%PAPER%%" == "" (
|
||||
|
||||
Reference in New Issue
Block a user