Merge "Quote message in echo-error/echo-warning macros" am: 1cdbf8f2bd
am: 224210eaba
am: a1cd25650a
Change-Id: I23f135b024feb381e1a62cd696482dd2331b1ac6
This commit is contained in:
@@ -797,13 +797,13 @@ ESC_RESET := \033[0m
|
|||||||
# $(1): path (and optionally line) information
|
# $(1): path (and optionally line) information
|
||||||
# $(2): message to print
|
# $(2): message to print
|
||||||
define echo-warning
|
define echo-warning
|
||||||
echo -e "$(ESC_BOLD)$(1): $(ESC_WARNING)warning:$(ESC_RESET)$(ESC_BOLD)" $(2) "$(ESC_RESET)" >&2
|
echo -e "$(ESC_BOLD)$(1): $(ESC_WARNING)warning:$(ESC_RESET)$(ESC_BOLD)" '$(subst ','\'',$(2))' "$(ESC_RESET)" >&2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# $(1): path (and optionally line) information
|
# $(1): path (and optionally line) information
|
||||||
# $(2): message to print
|
# $(2): message to print
|
||||||
define echo-error
|
define echo-error
|
||||||
echo -e "$(ESC_BOLD)$(1): $(ESC_ERROR)error:$(ESC_RESET)$(ESC_BOLD)" $(2) "$(ESC_RESET)" >&2
|
echo -e "$(ESC_BOLD)$(1): $(ESC_ERROR)error:$(ESC_RESET)$(ESC_BOLD)" '$(subst ','\'',$(2))' "$(ESC_RESET)" >&2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
Reference in New Issue
Block a user