Filter munges out during doc generation

This allows us to apply content-mutating munges to generated files and nothave
the verifier flag them as needing regeneration later.
This commit is contained in:
Tim Hockin
2015-07-11 15:57:52 -07:00
parent ad8f8731b6
commit 06a6623a70
3 changed files with 19 additions and 11 deletions

View File

@@ -60,10 +60,10 @@ if [[ $ret -eq 2 ]]; then
fi
kube::util::gen-doc "${genman}" "${TMP_DOCROOT}/man/man1/"
kube::util::gen-doc "${gendocs}" "${TMP_DOCROOT}"
kube::util::gen-doc "${gendocs}" "${TMP_DOCROOT}" '###### Auto generated by spf13/cobra'
echo "diffing ${DOCROOT} against freshly generated docs"
ret=0
diff -Naupr -I 'Auto generated by' "${DOCROOT}" "${TMP_DOCROOT}" || ret=$?
diff -Naupr "${DOCROOT}" "${TMP_DOCROOT}" || ret=$?
rm -rf "${_tmp}"
needsanalytics=($(kube::util::gen-analytics "${KUBE_ROOT}" 1))
if [[ ${#needsanalytics[@]} -ne 0 ]]; then