diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-11 10:37:31 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-11 10:39:15 +0200 |
commit | 2237d05df83cb4fc2adffaca11e0de3c2c5f28b1 (patch) | |
tree | 0833250bb0d7c5bf94d8686cbd46772583e01eb2 /top | |
parent | 3c79d5102b2c29f897d162543d6c0cf2d81bb0e6 (diff) | |
download | gnulib-2237d05df83cb4fc2adffaca11e0de3c2c5f28b1.tar.gz |
maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
* top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
empty file with one that ends in an empty line.
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk index 6bfb4c1a7e..b71304dc4a 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -674,7 +674,7 @@ sc_prohibit_cvs_keyword: # perl -pi -0777 -e 's/\n\n+$/\n/' files... # detect_empty_lines_at_EOF_ = \ - /^==> ([^\n]+) <==\n\n/m and (print "$$1\n"), $$fail = 1; \ + /^==> ([^\n]+) <==\n\n\n/m and (print "$$1\n"), $$fail = 1; \ END { exit defined $$fail } sc_prohibit_empty_lines_at_EOF: @tail -n1 $$($(VC_LIST_EXCEPT)) /dev/null \ |