top/maint.mk (sc_texinfo_acronym): Add rule.
authorSimon Josefsson <simon@josefsson.org>
Wed, 24 Mar 2010 07:45:04 +0000 (08:45 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 24 Mar 2010 07:45:04 +0000 (08:45 +0100)
Based on suggestions from karl@freefriends.org (Karl Berry).

ChangeLog
top/maint.mk

index 8e31e9a..8166c5d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-24  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_texinfo_acronym): Add rule, based on
+       suggestions from karl@freefriends.org (Karl Berry).
+
 2010-03-22  Eric Blake  <eblake@redhat.com>
 
        gethostname: further tweaks
index d2248d8..67421f2 100644 (file)
@@ -561,6 +561,13 @@ sc_GFDL_version:
        @re='$(_GFDL_regexp)' msg='GFDL vN, N!=3'                       \
          $(_prohibit_regexp)
 
+# Don't use Texinfo @acronym{} as it is not a good idea.
+sc_texinfo_acronym:
+       @grep -nE '@acronym{'                                           \
+           $$($(VC_LIST_EXCEPT) | grep -E '\.texi$$') &&               \
+         { echo '$(ME): found use of Texinfo @acronym{}' 1>&2;         \
+           exit 1; } || :
+
 cvs_keywords = \
   Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State