From: Michael Jeanson Date: Wed, 14 Oct 2020 18:32:37 +0000 (-0400) Subject: port: ls --ignore= is a GNU extension X-Git-Tag: v2.13.0-rc1~455 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9c65854d5c1453d4028dd9c427f0e6184e6ebe92;p=lttng-tools.git port: ls --ignore= is a GNU extension Use grep -v instead to filter README. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau Change-Id: I8fb6aba97ba1484aff511d59eeb4584e9672659e --- diff --git a/include/Makefile.am b/include/Makefile.am index 1cfcd8320..658a56753 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -74,7 +74,7 @@ version.i: fi; \ echo "#define EXTRA_VERSION_NAME \"`$(SED) -n '1p' "$(top_srcdir)/version/extra_version_name" 2> /dev/null`\"" >> version.i.tmp; \ echo "#define EXTRA_VERSION_DESCRIPTION \"`$(SED) -E ':a ; N ; $$!ba ; s/[^a-zA-Z0-9 \n\t\.,]/-/g ; s/\r{0,1}\n/\\\n\\\t/g' "$(top_srcdir)/version/extra_version_description" 2> /dev/null`\"" >> version.i.tmp; \ - echo "#define EXTRA_VERSION_PATCHES \"`ls --ignore='README' -1 "$(top_srcdir)/version/extra_patches" | $(SED) -E ':a ; N ; $$!ba ; s/[^a-zA-Z0-9 \n\t\.]/-/g ; s/\r{0,1}\n/\\\n\\\t/g' 2> /dev/null`\"" >> version.i.tmp; \ + echo "#define EXTRA_VERSION_PATCHES \"`ls -1 "$(top_srcdir)/version/extra_patches" | $(GREP) -v '^README' | $(SED) -E ':a ; N ; $$!ba ; s/[^a-zA-Z0-9 \n\t\.]/-/g ; s/\r{0,1}\n/\\\n\\\t/g' 2> /dev/null`\"" >> version.i.tmp; \ if test ! -f version.i || \ test x"`cat version.i.tmp`" != x"`cat version.i`"; then \ mv version.i.tmp version.i; \