cfg.mk: use subst instead of tr

GNU make is able to replace characters, no need to call tr.
This commit is contained in:
Ján Tomko 2016-06-16 12:05:35 +02:00
parent 5e045eca90
commit 1fe77f9f7f
1 changed files with 3 additions and 2 deletions

5
cfg.mk
View File

@ -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.