From 30341532906d62808e9d66fb115f5edb4e6f5706 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 19 Oct 2020 18:13:35 -0400 Subject: [PATCH] port: 'ls --ignore=' is a GNU extension MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use grep -v instead to filter README.adoc. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau Change-Id: I9b58120ee94dc4caa7b1e69bb4a4807f2af6f98c --- src/common/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 08f3aff4..cc17ad76 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -96,7 +96,7 @@ version.i: fi; \ echo "#define BT_VERSION_EXTRA_NAME \"`$(SED) -n '1p' "$(top_srcdir)/version/extra_version_name" 2> /dev/null`\"" >> version.i.tmp; \ echo "#define BT_VERSION_EXTRA_DESCRIPTION \"`$(SED) -E ':a ; N ; $$!ba ; s/[^a-zA-Z0-9 \n\t\.,]/-/g ; s/\r{0,1}\n/\\\n/g' "$(top_srcdir)/version/extra_version_description" 2> /dev/null`\"" >> version.i.tmp; \ - echo "#define BT_VERSION_EXTRA_PATCHES \"`ls --ignore='README.adoc' -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/g' 2> /dev/null`\"" >> version.i.tmp; \ + echo "#define BT_VERSION_EXTRA_PATCHES \"`ls -1 "$(top_srcdir)/version/extra_patches" | $(GREP) -v '^README.adoc' | $(SED) -E ':a ; N ; $$!ba ; s/[^a-zA-Z0-9 \n\t\.]/-/g ; s/\r{0,1}\n/\\\n/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; \ -- 2.34.1