diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-09 20:47:22 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-11 12:57:14 +0200 |
commit | 07d33439f3107d3e84d6408a7be2d6c794c8e256 (patch) | |
tree | 5eb8befb4676ee3af79c728cbb04aded1feeae97 /configure | |
parent | 85a7ff8c27265f88c01cbe478af5f348c5cc7594 (diff) | |
download | ffmpeg-streaming-07d33439f3107d3e84d6408a7be2d6c794c8e256.zip ffmpeg-streaming-07d33439f3107d3e84d6408a7be2d6c794c8e256.tar.gz |
configure: colorize error messages
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -421,6 +421,7 @@ if test -t 1 && which tput >/dev/null; then if test -n "$ncolors" && test $ncolors -ge 8; then bold_color=$(tput bold) warn_color=$(tput setaf 3) + error_color=$(tput setaf 1) reset_color=$(tput sgr0) fi fi @@ -435,18 +436,14 @@ log_file(){ log END $1 } -echolog(){ - log "$@" - echo "$@" -} - warn(){ log "WARNING: $*" WARNINGS="${WARNINGS}WARNING: $*\n" } die(){ - echolog "$@" + log "$@" + echo "$error_color$bold_color$@$reset_color" cat <<EOF If you think configure made a mistake, make sure you are using the latest |