Output.mk (b63233d8) Output.mk (fb0ae187)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 35 unchanged lines hidden (view full) ---

44define gb_Output_info
45$(info [ info $(2) ] $(1))
46endef
47
48define gb_Output_warn
49$(warning $(NEWLINE)[ WARN $(2) ] !!!$(NEWLINE)[ WARN $(2) ] !!! $(1)$(NEWLINE)[ WARN $(2) ] !!!)
50endef
51
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 35 unchanged lines hidden (view full) ---

44define gb_Output_info
45$(info [ info $(2) ] $(1))
46endef
47
48define gb_Output_warn
49$(warning $(NEWLINE)[ WARN $(2) ] !!!$(NEWLINE)[ WARN $(2) ] !!! $(1)$(NEWLINE)[ WARN $(2) ] !!!)
50endef
51
52gb_Output_ESCAPE := $(shell echo|awk 'BEGIN { printf "%c", 27 }' -)
53gb_Output_BELL := $(shell echo|awk 'BEGIN { printf "%c", 7 }' -)
52# env variables names are uppercase only
53ifeq ($(OS),OS2)
54gb_COLOR = $(GB_COLOR)
55gb_TITLES = $(GB_TITLES)
56endif
54
57
58# disable for OS/2
59ifneq ($(OS),OS2)
60gb_Output_ESCAPE := $(shell echo|$(gb_AWK) 'BEGIN { printf "%c", 27 }' -)
61gb_Output_BELL := $(shell echo|$(gb_AWK) 'BEGIN { printf "%c", 7 }' -)
62endif
63
64
55# only enable colorized output if
56# - gb_COLOR is set
57# - we have a known term
58ifneq ($(strip $(gb_COLOR)),)
59ifneq ($(filter $(TERM),Eterm aterm gnome kterm linux rxvt rxvt-unicode screen xterm xterm-color xtermc),)
60
61gb_Output_COLOR_RESET := $(gb_Output_ESCAPE)[0m
62gb_Output_COLOR_RESETANDESCAPE := $(gb_Output_COLOR_RESET)$(gb_Output_ESCAPE)

--- 81 unchanged lines hidden ---
65# only enable colorized output if
66# - gb_COLOR is set
67# - we have a known term
68ifneq ($(strip $(gb_COLOR)),)
69ifneq ($(filter $(TERM),Eterm aterm gnome kterm linux rxvt rxvt-unicode screen xterm xterm-color xtermc),)
70
71gb_Output_COLOR_RESET := $(gb_Output_ESCAPE)[0m
72gb_Output_COLOR_RESETANDESCAPE := $(gb_Output_COLOR_RESET)$(gb_Output_ESCAPE)

--- 81 unchanged lines hidden ---