From: Pádraig Brady Date: Tue, 15 Dec 2015 17:10:10 +0000 (+0000) Subject: maint: ensure emit_mandatory_arg_note() used if needed X-Git-Tag: v8.25~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a6c5b3b6c02e0feef5abec29d2ec640a27b36c;p=thirdparty%2Fcoreutils.git maint: ensure emit_mandatory_arg_note() used if needed * cfg.mk (sc_emit_mandatory_arg_note): Add new syntax check. --- diff --git a/cfg.mk b/cfg.mk index 656035bf5f..23f166189a 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: