From: Ján Tomko Date: Thu, 16 Jun 2016 10:05:35 +0000 (+0200) Subject: cfg.mk: use subst instead of tr X-Git-Tag: v2.2.0-rc1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe77f9f7fe7d1957673df2f8d03e20e54333fcc;p=thirdparty%2Flibvirt.git cfg.mk: use subst instead of tr GNU make is able to replace characters, no need to call tr. --- 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.