From: Raphael Kubo da Costa Date: Mon, 5 Dec 2016 10:53:43 +0000 (+0100) Subject: build: Use EGREP to generate graphviz_version.h X-Git-Tag: 2.40.0~5^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a3f3661db9d6df980f06b808fabb4740edc7304;p=graphviz build: Use EGREP to generate graphviz_version.h According to POSIX, '|' only works as an alternation character in grep when it is extended regular expression mode (egrep, or grep -E). This is not an issue most of the time because GNU grep accepts it in non-extended expressions as well, but other grep implementations adhering to the standard will fail to match the pattern used to generate graphviz_version.h. Switching to EGREP (which also requires not escaping the '|'s) makes it work for all implementations. --- diff --git a/Makefile.am b/Makefile.am index 09181e79e..fb212b41f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,7 +33,7 @@ dist-hook: BUILT_SOURCES = $(top_builddir)/graphviz_version.h $(top_builddir)/graphviz_version.h: config.h - $(GREP) 'PACKAGE\|VERSION\|GVPLUGIN' config.h > $(top_builddir)/graphviz_version.h + $(EGREP) 'PACKAGE|VERSION|GVPLUGIN' config.h > $(top_builddir)/graphviz_version.h EXTRA_DIST = $(txt) $(html) graphviz.spec.in graphviz.spec \ autogen.sh config/depcomp config/config.rpath \