[PATCH 4/7] cfg.mk: use subst instead of tr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GNU make is able to replace characters, no need to call tr.
---
 cfg.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cfg.mk b/cfg.mk
index cf47d4c..0604d69 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -614,8 +614,9 @@ msg_gen_function += xenapiSessionErrorHandler
 # msg_gen_function += vshPrint
 # msg_gen_function += vshError
 
-func_or := $(shell echo $(msg_gen_function)|tr -s ' ' '|')
-func_re := ($(func_or))
+space =
+space +=
+func_re= ($(subst $(space),|,$(msg_gen_function)))
 
 # Look for diagnostics that aren't marked for translation.
 # This won't find any for which error's format string is on a separate line.
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]