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 ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature