]> Savannah Git Hosting - gnulib.git/commitdiff
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 d9ef16b4793a69b6b761d7664c8399d3d32758ea..f396efdec8dcb5496ebdf72c12089a92100bdc21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,37 @@
+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
diff --git a/cfg.mk b/cfg.mk
index 045d0aeb00308ef94f3257882c0778fbaaa718ca..b4e41715c27825150b89bb6797807abcb136a084 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 7077bc248ad232d0fa41c3117ecb844482d62485..8f6cfd8aca16614f02b6f81e0ddf61eab31c8fb1 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 f04ccd68901e857f54c909a291889654b77d78b0..e1184a64d5794325169b6636406f63cd10145ae4 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 400c67f462bf178a55fa452ab34677c884f4c3f3..209f25c77a68e7f12228942418340bf9fef15cc3 100644 (file)
@@ -39,9 +39,3 @@ your changes?]
 
 [Please list the files involved, or give a brief description of the changes
 being disclaimed.]
-
-
-
-
-
-
index ef4b789099bfae74c71c3a15010e5b7471a5bc69..6e90e07d271f34826b3868acf577d68a5761c0c1 100644 (file)
@@ -368,4 +368,3 @@ operates.
 
 `configure' also accepts some other, not widely useful, options.  Run
 `configure --help' for more details.
-
index 032d47c635aefebb4ec53d1f0db0c54303595093..d60e29ab755883e4ffcb1743c19b757f5186f703 100644 (file)
@@ -368,4 +368,3 @@ operates.
 
 'configure' also accepts some other, not widely useful, options.  Run
 'configure --help' for more details.
-
index b41c683c61ca1dabc77519f3d74136c543ac9e1e..89e5f651c3a674e1fb192307336217b33f1c1f06 100644 (file)
@@ -368,4 +368,3 @@ operates.
 
 ‘configure’ also accepts some other, not widely useful, options.  Run
 ‘configure --help’ for more details.
-
index e3007f5108e1fdb9998fe019f3562d726d6d28c6..82ce6e4e0492b4c194994d597fc51fa765622d69 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 26d5cc7071c50bd978bc43a800b772c414ae71c6..6edd16551d4442205258972374ab58d0b127a52c 100644 (file)
@@ -493,4 +493,3 @@ Functions:
   ...
 Utilities:
   cacls
-
index 3b83db466fac2875c93c07117c3a0209f623b0c5..cb71f05a175f841e91d37d73f2ac911100e40e7b 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 bd0675912159061fe539f3527fa0f1b6b1de948a..bdd7807534b950f9b3216e7bdc19ba9c2e0d0f05 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 e50dad81a142c6f003ce74c301fbbdb2ee488dd4..aab8160518b80e37c23ca7a9567a417f1567d4af 100644 (file)
@@ -24,4 +24,3 @@ char *program_invocation_short_name = 0;
 #ifndef HAVE_PROGRAM_INVOCATION_NAME
 char *program_invocation_name = 0;
 #endif
-
index f4c8a35ec6fb33668ea0e6f6222240fbdc94da51..f7b2954a8e12ba0506ffcf415511b3ebccbdc10d 100644 (file)
@@ -167,4 +167,3 @@ FLOOR_FREE_ROUND (DOUBLE x)
   return z;
 }
 #endif /* FLOOR_FREE_ROUND */
-
index 9e8f3c2e1842acbab089e0f67021688b853e6f96..ddb8a1a5c6c0b2e324bba9d7bbd4f71fe3370741 100644 (file)
@@ -24,4 +24,3 @@
 #define UNIT uint16_t
 #define U_CT_TOTITLE u16_ct_totitle
 #include "u-totitle.h"
-
index 0e328aa37433c25514a23df19d45b577736a1368..2751ded71c898f7b48260a52ae8f466767bd53e4 100644 (file)
@@ -28,4 +28,3 @@ uc_is_block (ucs4_t uc, const uc_block_t *block)
   else
     return false;
 }
-
index f2e3e7e432fd334242081c53f7e8aeb2e6821cfb..6efdcb4d7ef1b9c1eb6b86b80b2aa00771a4555b 100644 (file)
@@ -105,4 +105,3 @@ uc_canonical_decomposition (ucs4_t uc, ucs4_t *decomposition)
     }
   return -1;
 }
-
index 18ed6e728c6239e81615cf9f57935b67bf66b788..2fdb556ab86518aac26836da6b89cc215846bddd 100644 (file)
--- a/m4/README
+++ b/m4/README
@@ -123,4 +123,3 @@ that makes it easy.
   into
 
     # setenv.m4 serial 3
-
index 22f82b1ea5785d5dfdebb7d88e80a7f7675d6836..8dcc0c93eb237995c79eb78241d6ef4464da594a 100644 (file)
@@ -45,4 +45,3 @@ AC_DEFUN([gl_RELOCATABLE_NOP],
   AC_SUBST([RELOCATABLE])
   AC_MSG_RESULT([$RELOCATABLE])
 ])
-
index d35e9b34c3046a63d7582db4fb6619bea7322686..aa058b0398bf4d0e2be21f8f24cef666bf2bd84b 100644 (file)
@@ -19,4 +19,3 @@
 #include "isnand-nolibm.h"
 
 #include "test-isnand.h"
-
index 09b2c6fe8775aab2d65e0b7f69c1d8987c9de743..e28b72f853abc12a8e4abe24a265d28b73e45c05 100644 (file)
@@ -19,4 +19,3 @@
 #include <math.h>
 
 #include "test-isnand.h"
-
index 03e12e399a22a9ff9582582d5c59082f148608b0..215c26f82e73513c2fe07bdc57a83b206c1b6daf 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;
-
-