summaryrefslogtreecommitdiff
path: root/top/maint.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-01-10 07:19:02 -0800
committerJim Meyering <meyering@fb.com>2017-01-10 07:19:02 -0800
commit94386a13667c645fd42544a7fd302cdddd39fcdf (patch)
treeba9ccab858d3d3380587c401ba1a8f633a90499c /top/maint.mk
parent836ac768dbbc444c887d1742ff869521ec3b7b5c (diff)
downloadgnulib-94386a13667c645fd42544a7fd302cdddd39fcdf.tar.gz
maint.mk: enforce spelling of "timestamp" (i.e., no space)
* top/maint.mk (prohibit_undesirable_word_seq_RE_): Also disallow /\btime\s+stamps?\b/. Prefer "timestamp".
Diffstat (limited to 'top/maint.mk')
-rw-r--r--top/maint.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 28cb9db101..0cabd2f319 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -983,10 +983,11 @@ sc_prohibit_doubled_word:
# Also prohibit a prefix matching "\w+ +".
# @pxref gets the same see/also treatment and should be parenthesized;
# presume it must *not* start a sentence.
+# POSIX spells it "timestamp" rather than "time\s+stamp", so we do, too.
bad_xref_re_ ?= (?:[\w,:;] +|(?:see|also)\s+)\@xref\{
bad_pxref_re_ ?= (?:[.!?]|(?:see|also))\s+\@pxref\{
prohibit_undesirable_word_seq_RE_ ?= \
- /(?:\bcan\s+not\b|$(bad_xref_re_)|$(bad_pxref_re_))/gims
+ /(?:\bcan\s+not\b|\btime\s+stamps?\b|$(bad_xref_re_)|$(bad_pxref_re_))/gims
prohibit_undesirable_word_seq_ = \
-e 'while ($(prohibit_undesirable_word_seq_RE_))' \
$(perl_filename_lineno_text_)