[PATCH weston 2/8] Use $(SED) to make sure GNU sed is used

Greg V greg at unrelenting.technology
Sun Dec 17 19:04:36 UTC 2017


FreeBSD's default sed is not compatible with this expression.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 7adc6254..919c7c78 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1609,7 +1609,7 @@ $(if $(findstring unstable,$1),unstable,stable)
 endef
 
 define protoname
-$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
+$(shell echo $1 | $(SED) 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
 endef
 
 protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
-- 
2.15.1



More information about the wayland-devel mailing list