From: Paul Eggert Date: Thu, 30 May 2002 12:15:26 +0000 (+0000) Subject: (distdir): Don't assume that 'grep -F' works; instead, use shell X-Git-Tag: Release-1-6b~88 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=38d7a6dc9f08d6d9c8111644c84488c62b394a27;p=automake.git (distdir): Don't assume that 'grep -F' works; instead, use shell pattern matching. --- diff --git a/lib/am/distdir.am b/lib/am/distdir.am index a34710e7..4fec72aa 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -42,11 +42,12 @@ distdir: $(DISTFILES) ## if %?TOPDIR_P% if %?CK-NEWS% - @if sed 15q $(srcdir)/NEWS | grep -F -e "$(VERSION)" >/dev/null; \ - then :; else \ + @case `sed 15q $(srcdir)/NEWS` in \ + *"$(VERSION)"*) : ;; \ + *) \ echo "NEWS not updated; not releasing" 1>&2; \ - exit 1; \ - fi + exit 1;; \ + esac endif %?CK-NEWS% endif %?TOPDIR_P% ##