Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the bug in the batch file make.bat for generating xml files with … #4290

Merged
merged 1 commit into from
Aug 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions doc/sphinx/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,20 @@ if "%1" == "dummy" (
)

if "%1" == "xmlwithversion" (
for /f %%i in ('az cloud list-profiles -o tsv') do (
az cloud update --profile %%i
%SPHINXBUILD% -E -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml/%%i
if errorlevel 1 exit /b 1
echo.
echo.Build of profile %%i finished. The XML files are in %BUILDDIR%/xml/%%i.
)
goto end
call :genxmlwithversion
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The XML files are in %BUILDDIR%/xml.
goto :eof
)

:genxmlwithversion
for /f %%i in ('az cloud list-profiles -o tsv') do (
az cloud update --profile %%i
%SPHINXBUILD% -E -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml/%%i
if errorlevel 1 exit /b 1
echo.Build of profile %%i finished. The XML files are in %BUILDDIR%/xml/%%i.
)
goto :eof

:end