From 1fe77f9f7fe7d1957673df2f8d03e20e54333fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 16 Jun 2016 12:05:35 +0200 Subject: [PATCH] cfg.mk: use subst instead of tr 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 cf47d4c58f..0604d69b35 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. -- GitLab