changeset 17587:386365d65046

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.
author Jim Meyering <meyering@fb.com>
date Sat, 04 Jan 2014 10:50:45 -0800
parents 6c3a5469bbfc
children b1b3e9794cf9
files ChangeLog cfg.mk
diffstat 2 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jan 03 17:17:27 2014 -0800
+++ b/ChangeLog	Sat Jan 04 10:50:45 2014 -0800
@@ -1,3 +1,10 @@
+2014-01-04  Jim Meyering  <meyering@fb.com>
+
+	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.
+
 2014-01-03  Jim Meyering  <meyering@fb.com>
 
 	freadable, fwritable, fwriting: declare with the "pure" attribute
--- a/cfg.mk	Fri Jan 03 17:17:27 2014 -0800
+++ b/cfg.mk	Sat Jan 04 10:50:45 2014 -0800
@@ -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			\