doc: redirect doc generation output using tee

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-11-10 08:27:08 -05:00 committed by Anas Nashif
commit 706ac7fe07
2 changed files with 4 additions and 4 deletions

View file

@ -41,8 +41,8 @@ build:
echo "Building a Pull Request";
echo "- Building Documentation";
echo "Commit range:" ${COMMIT_RANGE}
make htmldocs > doc.warnings 2>&1;
if [ -s doc.warnings ]; then
make htmldocs
if [ -s doc/doc.warnings ]; then
echo " => New documentation warnings/errors";
fi;
echo "- Verify commit message, coding style, doc build";

View file

@ -79,8 +79,8 @@ kconfig: scripts/genrest/genrest.py
prep: doxy content kconfig
html: content kconfig
$(Q)$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html > doc.log 2>&1;
$(Q)./scripts/filter-doc-log.sh doc.log
$(Q)$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html 2>&1 | tee doc.log;
$(Q)./scripts/filter-doc-log.sh doc.log > doc.warnings 2>&1;
@rm -rf samples
@rm -rf boards