summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-01-04 10:50:45 -0800
committerJim Meyering <meyering@fb.com>2014-01-04 11:39:30 -0800
commit0f3a66244773007c93c691701bb4f6018bd57122 (patch)
tree610e7f72c8217dc7b6be1d6f8f0a633811c3d725 /cfg.mk
parent34af3d3fd03a60d19c3fde90bbb350d5567fec66 (diff)
downloadgnulib-0f3a66244773007c93c691701bb4f6018bd57122.tar.gz
maint: add a gnulib-local rule to keep non-ascii out of .texi files
* cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule, so that "make sc_maint" will ding anyone who puts non-ascii in any of gnulib's .texi files.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index f1bdec103c..5b9456bdef 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1,5 +1,17 @@
# This file is used via the maint.mk-using rule in Makefile.
+# This is a gnulib-specific rule to keep non-ascii characters
+# from creeping into our .texi files. There is nothing inherently
+# wrong with e.g., UTF-8 characters in texinfo sources, but here,
+# we had accumulated some non-ascii apostrophes and hyphens, and
+# they were recently replaced with their ascii analogs. This rule
+# should help keep things consistent.
+sc_keep_gnulib_texi_files_mostly_ascii:
+ @prohibit='[^][ a-zA-Z0-9'\''`~!\@#$$%^&*(){}=+";:,./<>?|\_-]' \
+ in_vc_files='\.texi$$' \
+ halt='invalid bytes in gnulib .texi file' \
+ $(_sc_search_regexp)
+
local-checks-to-skip = \
sc_GFDL_version \
sc_GPL_version \