Merge pull request #17576 from edsantiago/manpage_check

make docs: sanity check for broken man pages
This commit is contained in:
OpenShift Merge Robot
2023-02-20 16:24:04 +01:00
committed by GitHub

View File

@ -469,11 +469,9 @@ $(MANPAGES): %: %.md .install.md2man docdir
-e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' \
-e 's/\\$$/ /g' $< |\
$(GOMD2MAN) -out $(subst source/markdown,build/man,$@)
# FIXME: 2023-02-16: we may need a multi-commit approach to
# enable this.
# @if grep 'included file options/' docs/build/man/*; then \
# echo "FATAL: man pages must not contain ^^^^"; exit 1; \
# fi
@if grep 'included file options/' docs/build/man/*; then \
echo "FATAL: man pages must not contain ^^^^"; exit 1; \
fi
.PHONY: docdir
docdir: