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-6-1b~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3804a9e68da357f0962447f8ebef26c365cc8ca7;p=thirdparty%2Fautomake.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 a34710e7a..4fec72aaa 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% ##