]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* Makefile.maint (sc_texi_notab): New check: do not use TABs
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 30 Mar 2006 19:54:08 +0000 (19:54 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 30 Mar 2006 19:54:08 +0000 (19:54 +0000)
in texinfo files outside of verbatim environments.
(syntax-check-rules): Update.
* doc/autoconf.texi (Configuration Headers): Conform to it.

ChangeLog
Makefile.maint
doc/autoconf.texi

index e39b1b07cbb70e18b37c040d639efd8df6eec306..d1a57bcf3a86799459ac32c9b6422a0adf8aa2af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
index c266b3242e89e99390c83d010714fa6b008d3f16..5c8f7fa7eb91ea0716fd46f93df002536caa65fc 100644 (file)
@@ -103,7 +103,8 @@ syntax-check-rules = \
   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>'         \
@@ -166,13 +167,21 @@ sc_file_system:
            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) &&    \
index 75af9e65110bf34cc7e53e13a5a7e5d5c37099f5..15218b7da30691d2d40897ae67ac9cdcfa676531 100644 (file)
@@ -2761,7 +2761,7 @@ without invoking AC_CONFIG_HEADERS twice, like this:
 
 @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