maint: remove empty lines at EOF, but excluding modules/*
authorJim Meyering <meyering@redhat.com>
Tue, 17 Jan 2012 16:56:22 +0000 (17:56 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 21 Jan 2012 14:07:01 +0000 (15:07 +0100)
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.

22 files changed:
ChangeLog
cfg.mk
doc/Copyright/assign.translation.manual
doc/Copyright/request-assign.future
doc/Copyright/request-disclaim.changes
doc/INSTALL
doc/INSTALL.ISO
doc/INSTALL.UTF-8
doc/acl-cygwin.txt
doc/acl-resources.txt
doc/fdl.texi
doc/regexprops-generic.texi
lib/argp-pin.c
lib/round.c
lib/unicase/u16-totitle.c
lib/unictype/block_test.c
lib/uninorm/canonical-decomposition.c
m4/README
m4/relocatable-lib.m4
tests/test-isnand-nolibm.c
tests/test-isnand.c
tests/uninorm/NormalizationTest.txt

index d9ef16b..f396efd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,39 @@
 2012-01-17  Jim Meyering  <meyering@redhat.com>
 
+       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 exempt 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.
+
+2012-01-17  Jim Meyering  <meyering@redhat.com>
+
        maint: add framework to run syntax-check rules against gnulib sources
        * cfg.mk: New file, to disable all currently-failing tests.
        We'll enable them one by one, as they are made to pass.
diff --git a/cfg.mk b/cfg.mk
index 045d0ae..b4e4171 100644 (file)
--- 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)
index 7077bc2..8f6cfd8 100644 (file)
@@ -103,5 +103,3 @@ it separately (eg. in a message) makes extra clerical work for us.]
 
 
 [Please write your snail address here, so we can snail a copy back to you.]
-
-
index f04ccd6..e1184a6 100644 (file)
@@ -34,9 +34,3 @@ your changes?  Do you attend a school which might make such a claim?]
 
 [Which files have you changed so far, and which new files have you written
 so far?]
-
-
-
-
-
-
index 400c67f..209f25c 100644 (file)
@@ -39,9 +39,3 @@ your changes?]
 
 [Please list the files involved, or give a brief description of the changes
 being disclaimed.]
-
-
-
-
-
-
index ef4b789..6e90e07 100644 (file)
@@ -368,4 +368,3 @@ operates.
 
 `configure' also accepts some other, not widely useful, options.  Run
 `configure --help' for more details.
-
index 032d47c..d60e29a 100644 (file)
@@ -368,4 +368,3 @@ operates.
 
 'configure' also accepts some other, not widely useful, options.  Run
 'configure --help' for more details.
-
index b41c683..89e5f65 100644 (file)
@@ -368,4 +368,3 @@ operates.
 
 ‘configure’ also accepts some other, not widely useful, options.  Run
 ‘configure --help’ for more details.
-
index e3007f5..82ce6e4 100644 (file)
@@ -135,4 +135,3 @@ permissions according to the combination of the current umask,
 the explicit permissions requested and the default ACL entries
 Note: Under Cygwin, the default ACL entries are not taken into
 account currently.
-
index 26d5cc7..6edd165 100644 (file)
@@ -493,4 +493,3 @@ Functions:
   ...
 Utilities:
   cacls
-
index 3b83db4..cb71f05 100644 (file)
@@ -503,4 +503,3 @@ to permit their use in free software.
 @c Local Variables:
 @c ispell-local-pdict: "ispell-dict"
 @c End:
-
index bd06759..bdd7807 100644 (file)
@@ -712,4 +712,4 @@ The longest possible match is returned; this applies to the regular expression a
 
 @node sed regular expression syntax
 @subsection @samp{sed} regular expression syntax
-This is a synonym for ed.
\ No newline at end of file
+This is a synonym for ed.
index e50dad8..aab8160 100644 (file)
@@ -24,4 +24,3 @@ char *program_invocation_short_name = 0;
 #ifndef HAVE_PROGRAM_INVOCATION_NAME
 char *program_invocation_name = 0;
 #endif
-
index f4c8a35..f7b2954 100644 (file)
@@ -167,4 +167,3 @@ FLOOR_FREE_ROUND (DOUBLE x)
   return z;
 }
 #endif /* FLOOR_FREE_ROUND */
-
index 9e8f3c2..ddb8a1a 100644 (file)
@@ -24,4 +24,3 @@
 #define UNIT uint16_t
 #define U_CT_TOTITLE u16_ct_totitle
 #include "u-totitle.h"
-
index 0e328aa..2751ded 100644 (file)
@@ -28,4 +28,3 @@ uc_is_block (ucs4_t uc, const uc_block_t *block)
   else
     return false;
 }
-
index f2e3e7e..6efdcb4 100644 (file)
@@ -105,4 +105,3 @@ uc_canonical_decomposition (ucs4_t uc, ucs4_t *decomposition)
     }
   return -1;
 }
-
index 18ed6e7..2fdb556 100644 (file)
--- a/m4/README
+++ b/m4/README
@@ -123,4 +123,3 @@ that makes it easy.
   into
 
     # setenv.m4 serial 3
-
index 22f82b1..8dcc0c9 100644 (file)
@@ -45,4 +45,3 @@ AC_DEFUN([gl_RELOCATABLE_NOP],
   AC_SUBST([RELOCATABLE])
   AC_MSG_RESULT([$RELOCATABLE])
 ])
-
index d35e9b3..aa058b0 100644 (file)
@@ -19,4 +19,3 @@
 #include "isnand-nolibm.h"
 
 #include "test-isnand.h"
-
index 09b2c6f..e28b72f 100644 (file)
@@ -19,4 +19,3 @@
 #include <math.h>
 
 #include "test-isnand.h"
-
index 03e12e3..215c26f 100644 (file)
@@ -18179,5 +18179,3 @@ D5E4 0334 11B5;D5E4 0334 11B5;1112 1166 0334 11B5;D5E4 0334 11B5;1112 1166 0334
 D638 0334 11BC;D638 0334 11BC;1112 1169 0334 11BC;D638 0334 11BC;1112 1169 0334 11BC;
 D6FC 0334 11AE;D6FC 0334 11AE;1112 1170 0334 11AE;D6FC 0334 11AE;1112 1170 0334 11AE;
 D750 0334 11B5;D750 0334 11B5;1112 1173 0334 11B5;D750 0334 11B5;1112 1173 0334 11B5;
-
-