From b68e55ecce38dec47c3f9119e603b81773e5294a Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sun, 7 Jan 2018 02:57:38 +0800 Subject: [PATCH] wayland: Use portable sed syntax in gdk/wayland/Makefile.am Replace non-portable \<, \>, \+ with \(, \), \{, \} to avoid build failure on systems not using GNU sed. https://bugzilla.gnome.org/show_bug.cgi?id=792279 --- gdk/wayland/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/wayland/Makefile.am b/gdk/wayland/Makefile.am index cccb572f15..0b2d4ce27d 100644 --- a/gdk/wayland/Makefile.am +++ b/gdk/wayland/Makefile.am @@ -80,11 +80,11 @@ libgdkwaylandinclude_HEADERS = \ .SECONDEXPANSION: define protostability -$(shell echo $1 | sed 's/.*\(\\|\\).*/\1/') +$(shell echo $1 | sed 's/.*-\(\(un\)\{0,1\}stable\)-.*/\1/') endef define protoname -$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/') +$(shell echo $1 | sed 's/\([a-z\-]\{1,\}\)-[a-z]\{1,\}-v[0-9]\{1,\}/\1/') endef %-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml -- 2.26.2