gnumake2: using awk instead of echo for better portability

This commit is contained in:
Bjoern Michaelsen 2010-12-02 01:24:43 +01:00
parent 8c982338ec
commit 97b6f0ccc8

View file

@ -53,8 +53,8 @@ define gb_Output_warn
$(warning $(NEWLINE)[ WARN $(2) ] !!!$(NEWLINE)[ WARN $(2) ] !!! $(1)$(NEWLINE)[ WARN $(2) ] !!!)
endef
gb_Output_ESCAPE := $(shell echo -e '\033')
gb_Output_BELL := $(shell echo -e '\07')
gb_Output_ESCAPE := $(shell awk 'BEGIN { printf "%c", 27 }')
gb_Output_BELL := $(shell awk 'BEGIN { printf "%c", 7 }')
# only enable colorized output if
# - gb_COLOR is set