[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automake patch to not assume egrep or fgrep
From: |
Paul Eggert |
Subject: |
Re: Automake patch to not assume egrep or fgrep |
Date: |
Thu, 30 May 2002 05:18:28 -0700 (PDT) |
> From: Alexandre Duret-Lutz <address@hidden>
> Date: Thu, 30 May 2002 11:05:07 +0200
>
> Yes, this seems good.
OK, I checked in that change:
2002-05-30 Paul Eggert <address@hidden>
* lib/am/distdir.am (distdir): Don't assume that 'grep -F' works;
instead, use shell pattern matching.
--- distdir.am.~1.34.~ 2002-05-29 22:20:33.000000000 -0700
+++ distdir.am 2002-05-30 04:59:23.171761000 -0700
@@ -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%
##