From e9c8923d36e608241c829a06e1dc4a0931d961fa Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Sat, 9 Apr 2011 23:18:14 +0200
Subject: [PATCH] maint.mk: prohibit \<the the\>

* top/maint.mk (sc_prohibit_the_the): New rule.
---
 ChangeLog    | 3 +++
 top/maint.mk | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f523592e9c..521aefa851 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-04-09  Jim Meyering  <meyering@redhat.com>
 
+	maint.mk: prohibit \<the the\>
+	* top/maint.mk (sc_prohibit_the_the): New rule.
+
 	maint: fix "the the" in comment
 	* lib/count-one-bits.h: s/the the/the/
 
diff --git a/top/maint.mk b/top/maint.mk
index 823e46c93b..427dff3ece 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -841,6 +841,11 @@ sc_prohibit_S_IS_definition:
 	halt='do not define S_IS* macros; include <sys/stat.h>'		\
 	  $(_sc_search_regexp)
 
+sc_prohibit_the_the:
+	@prohibit='\<the[ ]the\>'					\
+	halt='avoid double "the"'					\
+	  $(_sc_search_regexp)
+
 sc_prohibit_can_not:
 	@prohibit='\<can[ ]not\>'					\
 	halt='use "cannot", not "can'' not"'				\
-- 
2.30.2