##// END OF EJS Templates
hg: Redirect Mercurial stdout/stderr to logging when running as WSGI...
hg: Redirect Mercurial stdout/stderr to logging when running as WSGI Any "console" output from Mercurial when Kallithea is running from WSGI should end up in Kallithea's logs. That seems like a nice general feature. This will however also solve another rare but more critical problem: Mercurial is writing to sys.stdout / sys.stderr, using several layers of wrapping. Since Mercurial 5.5 (with https://repo.mercurial-scm.org/hg/rev/8e04607023e5 ), all writes are given a memoryview. Apache httpd mod_wsgi is invoking the WSGI with a custom mod_wsgi.Log injected in sys.stdout / sys.stderr . This logger can however not handle memoryview - https://github.com/GrahamDumpleton/mod_wsgi/issues/863 .

File last commit:

r6333:e285bb7a default
r8795:fe050a93 stable
Show More
make.bat
155 lines | 4.3 KiB | application/x-msdownload | BatchLexer
updated docs, added sphinx build
r568 @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 set SPHINXBUILD=sphinx-build
updated docs, added sphinx build
r568 )
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
if NOT "%PAPER%" == "" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
updated docs, added sphinx build
r568 )
if "%1" == "" goto help
if "%1" == "help" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 :help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. changes to make an overview over all changed/added/deprecated items
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
updated docs, added sphinx build
r568 )
if "%1" == "clean" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
updated docs, added sphinx build
r568 )
if "%1" == "html" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "dirhtml" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "singlehtml" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "pickle" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
echo.
echo.Build finished; now you can process the pickle files.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "json" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
echo.
echo.Build finished; now you can process the JSON files.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "htmlhelp" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
updated docs, added sphinx build
r568 .hhp project file in %BUILDDIR%/htmlhelp.
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 goto end
updated docs, added sphinx build
r568 )
if "%1" == "qthelp" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
updated docs, added sphinx build
r568 .qhcp project file in %BUILDDIR%/qthelp, like this:
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Kallithea.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Kallithea.ghc
goto end
updated docs, added sphinx build
r568 )
if "%1" == "devhelp" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
echo.
echo.Build finished.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "epub" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "latex" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "text" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "man" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "changes" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
updated docs, added sphinx build
r568 )
if "%1" == "linkcheck" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
echo.
echo.Link check complete; look for any errors in the above output ^
updated docs, added sphinx build
r568 or in %BUILDDIR%/linkcheck/output.txt.
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 goto end
updated docs, added sphinx build
r568 )
if "%1" == "doctest" (
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
echo.
echo.Testing of doctests in the sources finished, look at the ^
updated docs, added sphinx build
r568 results in %BUILDDIR%/doctest/output.txt.
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 goto end
updated docs, added sphinx build
r568 )
:end