summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-17 17:56:22 +0100
committerJim Meyering <meyering@redhat.com>2012-01-21 15:07:01 +0100
commit7f45e1ae3741d0e03657c0c883e9b6cd1591f87c (patch)
treebb9871ab994a22d8649de5f0591ef44109bc4744 /cfg.mk
parent6caa4f5fa929fead3e181a2a151da4fb1953ba93 (diff)
downloadgnulib-7f45e1ae3741d0e03657c0c883e9b6cd1591f87c.tar.gz
maint: remove empty lines at EOF, but excluding modules/*
Apply syntax rules at home as well as abroad. Most changes were induced by running this: make srcdir=. _build-aux=build-aux -f top/maint.mk \ sc_prohibit_empty_lines_at_EOF | grep -v modules/ \ | xargs perl -pi -0777 -e 's/\n\n+$/\n/' * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF. Exempt modules/* and two binary files. Also exclude doc/INSTALL*, per request from Bruno Haible. * doc/regexprops-generic.texi: *Add* a newline at EOF. There was none. * doc/Copyright/assign.translation.manual: Remove empty lines at EOF. * doc/Copyright/request-assign.future: Likewise. * doc/Copyright/request-disclaim.changes: Likewise. * doc/INSTALL: Likewise. * doc/INSTALL.ISO: Likewise. * doc/INSTALL.UTF-8: Likewise. * doc/acl-cygwin.txt: Likewise. * doc/acl-resources.txt: Likewise. * doc/fdl-1.2.texi: Likewise. * doc/fdl-1.3.texi: Likewise. * doc/fdl.texi: Likewise. * lib/argp-pin.c: Likewise. * lib/round.c: Likewise. * lib/unicase/u16-totitle.c: Likewise. * lib/unictype/block_test.c: Likewise. * lib/uninorm/canonical-decomposition.c: Likewise. * m4/README: Likewise. * m4/relocatable-lib.m4: Likewise. * tests/test-isnand-nolibm.c: Likewise. * tests/test-isnand.c: Likewise. * tests/uninorm/NormalizationTest.txt: Likewise.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 045d0aeb00..b4e41715c2 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -26,7 +26,6 @@ local-checks-to-skip = \
sc_prohibit_cloexec_without_use \
sc_prohibit_dirent_without_use \
sc_prohibit_doubled_word \
- sc_prohibit_empty_lines_at_EOF \
sc_prohibit_error_without_use \
sc_prohibit_getopt_without_use \
sc_prohibit_hash_pjw_without_use \
@@ -54,3 +53,7 @@ local-checks-to-skip = \
sc_two_space_separator_in_usage \
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$$|$(empty-at-EOF)