aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am24
1 files changed, 23 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 97bff3f..ee522f2 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -64,2 +64,21 @@ check-options:
+check-config:
+ @check-docs.sh 'configuration statements' \
+ '/mf_cfg_param\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \
+ 's/@deffn {Mailfromd Conf} *\([^@,]*\).*/\1/p' \
+ $(top_srcdir)/mfd/main.c -- \
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
+ $(info_TEXINFOS)
+
+check-sub-config:
+ @list=`sed -n '/mf_cfg_param\[\] *= *{/,/^}/{s/[ \t]*{ *"\([^,"]*\)", *mu_cfg_section *,.*/\1/pg}' $(top_srcdir)/mfd/main.c`; \
+ for ident in $$list; do \
+ check-docs.sh "$$ident configuration statements" \
+ "/$${ident}_section_param"'\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \
+ "s/@deffn {$${ident}}"' *\([^@,]*\).*/\1/p' \
+ $(top_srcdir)/mfd/main.c -- \
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
+ $(info_TEXINFOS); \
+ done
+
check-builtins:
@@ -139,3 +158,6 @@ check-unrevised:
-all-check-docs: check-format check-options check-pragmas check-builtins check-mflib check-exceptions check-refs check-fixmes check-writeme check-unrevised
+all-check-docs: check-format check-options check-pragmas \
+ check-config check-sub-config \
+ check-builtins check-mflib check-exceptions \
+ check-refs check-fixmes check-writeme check-unrevised

Return to:

Send suggestions and report system problems to the System administrator.