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 8e31e9a48af81a0900276f8ed32b80d2cff3eac3..8166c5d793668edb565e4cce0328a6a6d9ec56d1 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 d2248d8faf3a8fb67ec1520e46a165ee5c4615ca..67421f2bb20297429c9e9610005fbb6fe84022bb 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