doc: report which warnings/errors are new
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
89514de230
commit
e754d44791
3 changed files with 19 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -31,6 +31,7 @@ sanity-out/
|
||||||
scripts/grub
|
scripts/grub
|
||||||
doc/reference/kconfig/CONFIG_*
|
doc/reference/kconfig/CONFIG_*
|
||||||
doc/reference/kconfig/index.rst
|
doc/reference/kconfig/index.rst
|
||||||
|
doc/doc.warnings
|
||||||
tags
|
tags
|
||||||
.project
|
.project
|
||||||
.cproject
|
.cproject
|
||||||
|
|
|
@ -80,7 +80,7 @@ prep: doxy content kconfig
|
||||||
|
|
||||||
html: content kconfig
|
html: content kconfig
|
||||||
$(Q)$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html 2>&1 | tee 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;
|
$(Q)./scripts/filter-doc-log.sh doc.log
|
||||||
@rm -rf samples
|
@rm -rf samples
|
||||||
@rm -rf boards
|
@rm -rf boards
|
||||||
|
|
||||||
|
|
|
@ -11,15 +11,29 @@ CONFIG_DIR=${ZEPHYR_BASE}/.known-issues/doc
|
||||||
|
|
||||||
LOG_FILE=$1
|
LOG_FILE=$1
|
||||||
|
|
||||||
|
red='\E[31m'
|
||||||
|
green='\e[32m'
|
||||||
|
|
||||||
if [ -z "${LOG_FILE}" ]; then
|
if [ -z "${LOG_FILE}" ]; then
|
||||||
echo "Error in $0: missing input parameter <logfile>"
|
echo "Error in $0: missing input parameter <logfile>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "${LOG_FILE}" ]; then
|
|
||||||
if [ -s "${LOG_FILE}" ]; then
|
if [ -s "${LOG_FILE}" ]; then
|
||||||
$KI_SCRIPT --config-dir ${CONFIG_DIR} ${LOG_FILE}
|
$KI_SCRIPT --config-dir ${CONFIG_DIR} ${LOG_FILE} > doc.warnings 2>&1
|
||||||
|
if [ -s doc.warnings ]; then
|
||||||
|
echo
|
||||||
|
echo -e "${red}New errors/warnings found, please fix them:"
|
||||||
|
echo -e "=============================================="
|
||||||
|
tput sgr0
|
||||||
|
echo
|
||||||
|
cat doc.warnings
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
echo -e "${green}No new errors/warnings."
|
||||||
|
tput sgr0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Error in $0: logfile \"${LOG_FILE}\" not found."
|
echo "Error in $0: logfile \"${LOG_FILE}\" not found."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue