diff options
author | Simon Josefsson <simon@josefsson.org> | 2022-11-01 09:06:56 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2022-11-01 09:06:56 +0100 |
commit | 4555e788613f1f5d1e8519427591bef3274d3124 (patch) | |
tree | 59caaadc04ae8334a968340a68e906140e348968 /top | |
parent | 4ad0eedf4ff8d294a10c20b8945d0e59aa8141db (diff) | |
download | gnulib-4555e788613f1f5d1e8519427591bef3274d3124.tar.gz |
maintainer-makefile: Add syntax-check rule for unportable 'grep -q'.
* top/maint.mk (sc_unportable_grep_q): Add.
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 4 |
1 files changed, 4 insertions, 0 deletions
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 \ |