summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-12-15 17:10:10 +0000
committerPádraig Brady <P@draigBrady.com>2015-12-15 17:44:45 +0000
commitf9a6c5b3b6c02e0feef5abec29d2ec640a27b36c (patch)
treec4ce648f9bba8fe5cc2bdc0d39c6357c12e90d8f /cfg.mk
parent070cec3234aeba6e5456b71ce25a34687b0dd6fc (diff)
downloadcoreutils-f9a6c5b3b6c02e0feef5abec29d2ec640a27b36c.tar.xz
maint: ensure emit_mandatory_arg_note() used if needed
* cfg.mk (sc_emit_mandatory_arg_note): Add new syntax check.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 656035bf5..23f166189 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -140,6 +140,14 @@ sc_prohibit_colon_redirection:
exit 1; } \
|| :
+# Ensure emit_mandatory_arg_note() is called if required
+sc_ensure_emit_mandatory_arg_note:
+ @cd $(srcdir)/src && GIT_PAGER= git \
+ grep -l -- '^ *-[^-].*--.*[^[]=' *.c \
+ | xargs grep -L emit_mandatory_arg_note | grep . \
+ && { echo '$(ME): '"emit_mandatory_arg_note() missing" 1>&2; \
+ exit 1; } || :
+
# Create a list of regular expressions matching the names
# of files included from system.h. Exclude a couple.
.re-list: