+2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * Makefile.maint (sc_texi_notab): New check: do not use TABs
+ in texinfo files outside of verbatim environments.
+ (syntax-check-rules): Update.
+ * doc/autoconf.texi (Configuration Headers): Conform to it.
+
2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
* doc/autoconf.texi (autoreconf Invocation): Mention that -I for
sc_system_h_headers \
sc_tight_scope \
sc_trailing_space \
- sc_unmarked_diagnostics
+ sc_unmarked_diagnostics \
+ sc_texi_notab
syntax-check: $(syntax-check-rules)
# @grep -nE '# *include <(limits|std(def|arg|bool))\.h>' \
exit 1; } || :
sc_obsolete_symbols:
- @grep -nE '\<(HAVE_''FCNTL_H)\>' \
+ @grep -nE '\<(HAVE_''FCNTL_H)\>' \
$$($(CVS_LIST_EXCEPT)) && \
{ echo '$(ME): do not use HAVE_''FCNTL_H' \
1>&2; exit 1; } || :
# FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
+# Do not use TABs in .texi files, except in verbatim environments.
+sc_texi_notab:
+ @sed '/^@verbatim/,/^@end verbatim/d' /dev/null \
+ $$($(CVS_LIST_EXCEPT) | grep -E '\.(texi|txi|texinfo)$$' ) \
+ | grep '[ ]' && \
+ { echo '$(ME): Do not use TABs in texinfo files outside of @verbatim' \
+ 1>&2; exit 1; } || :
+
# Each nonempty line must start with a year number, or a TAB.
sc_changelog:
@grep -n '^[^12 ]' $$(find . -maxdepth 2 -name ChangeLog) && \
@example
AC_CONFIG_COMMANDS_PRE(
- [m4_ifndef([AH_HEADER], [AC_CONFIG_HEADERS([config.h])])])
+ [m4_ifndef([AH_HEADER], [AC_CONFIG_HEADERS([config.h])])])
@end example
@end defmac