]> sourceware.org Git - automake.git/commitdiff
(distdir): Don't assume that 'grep -F' works; instead, use shell
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 May 2002 12:15:26 +0000 (12:15 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 May 2002 12:15:26 +0000 (12:15 +0000)
pattern matching.

lib/am/distdir.am

index a34710e7aaa94efb46ccc4e42b9fcb5477b13d00..4fec72aaa9327cc43155a46b7fc87938ea44fdf1 100644 (file)
@@ -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%
 ##
This page took 0.029498 seconds and 5 git commands to generate.