summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-12-13 20:16:59 +0000
committerPádraig Brady <P@draigBrady.com>2015-12-14 02:35:10 +0000
commit5f87f1ac1cb2ef44aac4284d8103e7556597a842 (patch)
tree5111883a2ffcd6856d42d66e70980fb19c02409c /cfg.mk
parent2c5d86a8b8340b50ca1457923f9041143245bb35 (diff)
downloadcoreutils-5f87f1ac1cb2ef44aac4284d8103e7556597a842.tar.xz
maint: remove form feed characters from sources
These are no longer useful and can impact viewing patches in some mail programs for example. * src/cksum.c: Remove ^L characters. * src/comm.c: Likewise. * src/kill.c Likewise. * src/ln.c Likewise. * src/nl.c Likewise. * src/pr.c Likewise. * src/ptx.c Likewise. * src/split.c Likewise. * src/tr.c Likewise. * src/tsort.c Likewise. * src/uniq.c Likewise. * src/wc.c Likewise. * cfg.mk (sc_prohibit-form-feed): A new syntax check.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index a2040348c..70808fd59 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -746,6 +746,12 @@ sc_gitignore_redundant:
sort | uniq -d | grep . && { echo '$(ME): Remove above' \
'entries from .gitignore' >&2; exit 1; } || :
+sc_prohibit-form-feed:
+ @prohibit=$$'\f' \
+ in_vc_files='\.[chly]$$' \
+ halt='Form Feed (^L) detected' \
+ $(_sc_search_regexp)
+
# Override the default Cc: used in generating an announcement.
announcement_Cc_ = $(translation_project_), \
coreutils@gnu.org, coreutils-announce@gnu.org