Merge pull request #41259 from alejandroEsc/ae/make_help/ansi

Automatic merge from submit-queue (batch tested with PRs 41259, 41260)

remove hardcoded ansi color coding for `make help` 

to tput so that color coding works in multiple platforms including osx.

**What this PR does / why we need it**: 
should try not to use hardcoded ansi escape characters.

**Release note**:
```NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-02-10 16:53:38 -08:00 committed by GitHub
commit 899ddbcfc6

View File

@ -18,8 +18,8 @@ set -o errexit
set -o nounset
set -o pipefail
red='\E[1;31m'
reset='\E[0m'
readonly red=$(tput setaf 1)
readonly reset=$(tput sgr0)
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
ALL_TARGETS=$(make -C "${KUBE_ROOT}" PRINT_HELP=y -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/ { s/:.*$// ; p ; } ; }' | sort)