From: Simon Josefsson Date: Tue, 1 Nov 2022 08:06:56 +0000 (+0100) Subject: maintainer-makefile: Add syntax-check rule for unportable 'grep -q'. X-Git-Tag: v1.0~1977 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4555e788613f1f5d1e8519427591bef3274d3124;p=gnulib.git maintainer-makefile: Add syntax-check rule for unportable 'grep -q'. * top/maint.mk (sc_unportable_grep_q): Add. --- diff --git a/top/maint.mk b/top/maint.mk index 045609c285..85b15fb2d2 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -1373,6 +1373,10 @@ sc_vulnerable_makefile_CVE-2012-3386: ' see https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-3386 for details') \ $(_sc_search_regexp) +sc_unportable_grep_q: + @prohibit='grep -q' halt="unportable 'grep -q', use >/dev/null instead" \ + $(_sc_search_regexp) + vc-diff-check: $(AM_V_GEN)(unset CDPATH; cd $(srcdir) && $(VC) diff) > vc-diffs || : $(AM_V_at)if test -s vc-diffs; then \