Kaydet (Commit) 970b56c4 authored tarafından Christian Lohmaier's avatar Christian Lohmaier Kaydeden (comit) Michael Stahl

mark configure's warning with some color

Change-Id: I7e225fc5ce353316cb689dc3bca8f606273e8796
üst 78051aaa
...@@ -56,8 +56,14 @@ add_warning() ...@@ -56,8 +56,14 @@ add_warning()
if test "$have_WARNINGS" = "no" ; then if test "$have_WARNINGS" = "no" ; then
echo "*************************************" >> warn echo "*************************************" >> warn
have_WARNINGS="yes" have_WARNINGS="yes"
if test $(tput colors) -ge 8 ; then
dnl <esc> as actual byte (U+1b), [ escaped using quadrigraph @<:@
COLORWARN='*@<:@1;33;40m WARNING @<:@0m:'
else
COLORWARN="* WARNING :"
fi
fi fi
echo "* WARNING : $@" >> warn echo "$COLORWARN $@" >> warn
} }
if test -n "$SOLARENV" ; then if test -n "$SOLARENV" ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment