bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/


From: Eric Blake
Subject: Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*
Date: Sat, 21 Jan 2012 07:34:36 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 01/17/2012 11:44 AM, Jim Meyering wrote:

>>> * doc/INSTALL: Likewise.
>>> * doc/INSTALL.ISO: Likewise.
>>> * doc/INSTALL.UTF-8: Likewise.
>>
>> These files are generated through doc/Makefile. Also, on text files
>> that consist of multiple paragraphs, I find it good (esthetic) to have
>> a blank line at the end. It helps when you do "cat INSTALL" or
>> "more INSTALL" (especially with the BSD 'more' program that terminates
>> when it has printed the last line).
> 
> I already exempted all of modules/* for you (I prefer to omit
> the trailing blank line everywhere).  Exempting three more is no problem.
> Well, not much of a problem.  Exempting them would make the regexp go
> beyond column 80, so this splits it.  Not pretty:
> 
> diff --git a/cfg.mk b/cfg.mk
> index bce58d2..2b4bcc8 100644
> --- a/cfg.mk
> +++ b/cfg.mk
> @@ -48,8 +48,9 @@ local-checks-to-skip =                      \
>    sc_unmarked_diagnostics            \
>    sc_useless_cpp_parens
> 
> +empty-at-EOF = 
> /fr/LC_MESSAGES/test-quotearg\.mo$$|^doc/INSTALL(\.(ISO|UTF-8))?
>  exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
> -  ^modules/|^lib/javaversion\.class$$|/fr/LC_MESSAGES/test-quotearg\.mo$$
> +  ^modules/|^lib/javaversion\.class$$|$(empty-at-EOF)

This part of your commit looks fishy: you touched up doc/INSTALL and
friends, but the next time doc/install.texi is changed, they will be
regenerated.  So right now, the exemption for those files does nothing,
but the generated files are also out of sync.

I would be in favor of Paul's proposed patch that makes the generation
omit the trailing blank line in the first place, but if we do that, then
we _also_ need to remove doc/INSTALL from the empty-at-EOF exemption.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]