[FFmpeg-devel] [PATCH] configure: colorize warning messages

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Aug 28 00:17:32 CEST 2015


This patch introduces color warning messages (yellow).
Tested with zsh, bash, and sh (bash under --posix).

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 8840027..7f43572 100755
--- a/configure
+++ b/configure
@@ -416,6 +416,8 @@ EOF
 }
 
 quotes='""'
+warn_color=$'\033[33;1m'
+reset_color=$'\033[0m'
 
 log(){
     echo "$@" >> $logfile
@@ -6197,7 +6199,7 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
 cp_if_changed $TMPH libavutil/avconfig.h
 
 if test -n "$WARNINGS"; then
-    printf "\n$WARNINGS"
+    printf "\n%s$WARNINGS%s" "$warn_color" "$reset_color"
     enabled fatal_warnings && exit 1
 fi
 
-- 
2.5.0



More information about the ffmpeg-devel mailing list