From 38d7a6dc9f08d6d9c8111644c84488c62b394a27 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 30 May 2002 12:15:26 +0000 Subject: [PATCH] (distdir): Don't assume that 'grep -F' works; instead, use shell pattern matching. --- lib/am/distdir.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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% ## -- 2.43.5