[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new syntax-check rule for @acronym?
From: |
Jim Meyering |
Subject: |
Re: new syntax-check rule for @acronym? |
Date: |
Fri, 26 Mar 2010 09:42:16 +0100 |
Simon Josefsson wrote:
> Eric Blake <address@hidden> writes:
...
> # Don't use Texinfo @acronym{} as it is not a good idea.
> sc_texinfo_acronym:
> - @grep -nE '@acronym{' \
> - $$($(VC_LIST_EXCEPT) | grep -E '\.texi$$') && \
> + @if $(VC_LIST_EXCEPT) | grep -lE '\.texi$$' >/dev/null; then \
Hi Simon,
I suggest you also check for .txi and .texinfo suffixes,
which probably means factoring out the regexps above and below.
Hmm... in fact, you could even make the regexp overridable:
texinfo_suffix_re_ =? '\.(texi(nfo)?|txi)$$'
> + grep -nE '@acronym{' \
> + $$($(VC_LIST_EXCEPT) | grep -E '\.texi$$') && \