summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-04-17 10:47:20 +0000
committerJim Meyering <jim@meyering.net>2004-04-17 10:47:20 +0000
commit9e946b86faa03f3e5269972afe259466149aafc6 (patch)
treeb63e4aba66b55b60bc4e9b5ec423030628affce7 /Makefile.maint
parente691ec1aa42cf527869e6ae0f67726f6bd6a4348 (diff)
downloadcoreutils-9e946b86faa03f3e5269972afe259466149aafc6.tar.xz
(sc_prohibit_jm_in_m4): New rule.
(syntax-check-rules): Add to the list.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 97e84d4c6..12b7ebd16 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -73,6 +73,7 @@ syntax-check-rules = \
sc_dd_max_sym_length \
sc_error_exit_success \
sc_prohibit_atoi_atof \
+ sc_prohibit_jm_in_m4 \
sc_space_tab \
sc_sun_os_names \
sc_system_h_headers \
@@ -165,6 +166,16 @@ sc_dd_max_sym_length:
exit 1; \
fi
+# Many m4 macros names once began with `jm_'.
+# On 2004-04-13, they were all changed to start with gl_ instead.
+# Make sure that none are inadvertently reintroduced.
+sc_prohibit_jm_in_m4:
+ @( cvsu --list ) > /dev/null 2>&1 || : && \
+ grep -E 'jm_[A-Z]' \
+ $$(cvsu --list $(srcdir)/m4 |grep '\.m4$$') && \
+ { echo '$(ME): do not use jm_ in m4 macro names' \
+ 1>&2; exit 1; } || :
+
# Create a list of regular expressions matching the names
# of files included from system.h. Exclude a couple.
.re-list: