aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-09-03 22:19:03 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-09-03 22:19:46 +0300
commitdbad35177723e19147ab49b59a3728e00fe05875 (patch)
treec2d399b19a5f7f058093a667347d6e40280b4494
parent705850b8b569dbd51fbb35dbf1e0f1800dd46b5a (diff)
downloadpies-dbad35177723e19147ab49b59a3728e00fe05875.tar.gz
pies-dbad35177723e19147ab49b59a3728e00fe05875.tar.bz2
Improve the upgrade conversion script. Update docs.
* NEWS: Update. * doc/Makefile.am (check-config, check-sub-config): New goals. (all-check-docs): Depend on the above. * doc/mailfromd.texi: Document syslog-async configuration statement. * doc/pragma-option.texi: Move the ignore block to doc/mailfromd.texi. * doc/upgrade.texi (5x0-600): Describe the changes and the proposed conversion procedure. * mfd/main.c (rename_legacy_file): new variable. (close_change_conf): Improve the created script. (cb_db_expire_interval): Bugfix. (database_section_param): File statement is mu_cfg_callback. (main): Set rename_legacy_file if necessary.
-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
@@ -62,6 +62,25 @@ check-options:
62 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ 62 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
63 $(info_TEXINFOS) 63 $(info_TEXINFOS)
64 64
65check-config:
66 @check-docs.sh 'configuration statements' \
67 '/mf_cfg_param\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \
68 's/@deffn {Mailfromd Conf} *\([^@,]*\).*/\1/p' \
69 $(top_srcdir)/mfd/main.c -- \
70 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
71 $(info_TEXINFOS)
72
73check-sub-config:
74 @list=`sed -n '/mf_cfg_param\[\] *= *{/,/^}/{s/[ \t]*{ *"\([^,"]*\)", *mu_cfg_section *,.*/\1/pg}' $(top_srcdir)/mfd/main.c`; \
75 for ident in $$list; do \
76 check-docs.sh "$$ident configuration statements" \
77 "/$${ident}_section_param"'\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \
78 "s/@deffn {$${ident}}"' *\([^@,]*\).*/\1/p' \
79 $(top_srcdir)/mfd/main.c -- \
80 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
81 $(info_TEXINFOS); \
82 done
83
65check-builtins: 84check-builtins:
66 @check-docs.sh builtins \ 85 @check-docs.sh builtins \
67 '/MF_DEFUN/{s/[ \t]*MF_DEFUN *(\([a-zA-Z_][a-zA-Z0-9_]*\),.*/\1/p;s/[ \t]*MF_DEFUN_VARARGS\(_NO_PROM\)\? *(\([a-zA-Z_][a-zA-Z0-9_]*\),.*/\2/p;s/[ \t]*MF_DEFUN_CTYPE *(\([a-zA-Z_][a-zA-Z0-9_]*\))/\1/p}'\ 86 '/MF_DEFUN/{s/[ \t]*MF_DEFUN *(\([a-zA-Z_][a-zA-Z0-9_]*\),.*/\1/p;s/[ \t]*MF_DEFUN_VARARGS\(_NO_PROM\)\? *(\([a-zA-Z_][a-zA-Z0-9_]*\),.*/\2/p;s/[ \t]*MF_DEFUN_CTYPE *(\([a-zA-Z_][a-zA-Z0-9_]*\))/\1/p}'\
@@ -137,7 +156,10 @@ check-unrevised:
137 rm $@-t; \ 156 rm $@-t; \
138 fi 157 fi
139 158
140all-check-docs: check-format check-options check-pragmas check-builtins check-mflib check-exceptions check-refs check-fixmes check-writeme check-unrevised 159all-check-docs: check-format check-options check-pragmas \
160 check-config check-sub-config \
161 check-builtins check-mflib check-exceptions \
162 check-refs check-fixmes check-writeme check-unrevised
141 163
142check-docs: 164check-docs:
143 @$(MAKE) -k all-check-docs 165 @$(MAKE) -k all-check-docs

Return to:

Send suggestions and report system problems to the System administrator.