[mutter/wip/lantw/wayland-on-freebsd: 1/3] build: Use portable sed syntax in src/Makefile.am
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/lantw/wayland-on-freebsd: 1/3] build: Use portable sed syntax in src/Makefile.am
- Date: Thu, 15 Feb 2018 21:22:14 +0000 (UTC)
commit 30a39344e258e3da4f5475c84a143b44da4dc64e
Author: Ting-Wei Lan <lantw src gnome org>
Date: Sun Jan 7 03:05:51 2018 +0800
build: Use portable sed syntax in src/Makefile.am
Replace non-portable \<, \>, \+ with \(, \), \{, \} to avoid build
failure on systems not using GNU sed.
https://bugzilla.gnome.org/show_bug.cgi?id=792280
src/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 3519afc11..67acc1e77 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -735,11 +735,11 @@ backends/native/meta-default-modes.h: backends/native/gen-default-modes.py Makef
.SECONDEXPANSION:
define protostability
-$(shell echo $1 | sed 's/.*\(\<unstable\>\|\<stable\>\).*/\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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]