]> xenbits.xensource.com Git - libvirt.git/commitdiff
cfg.mk: use subst instead of tr
authorJán Tomko <jtomko@redhat.com>
Thu, 16 Jun 2016 10:05:35 +0000 (12:05 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 18 Aug 2016 11:37:08 +0000 (13:37 +0200)
GNU make is able to replace characters, no need to call tr.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index cf47d4c58ff79cc3ff2af04eef218395b8680ae9..0604d69b35c7f27a9d7b83f232e14a820d09e388 100644 (file)
--- 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.