core: fix output of autogen.sh in shells like dash

Shell dash does not support option "-e" for echo, so this "-e" was displayed
in output. Therefore special chars for colors and alignment have been removed.
This commit is contained in:
Sebastien Helleu 2012-07-27 22:39:05 +02:00
parent 66ff8b735b
commit 3c5301226a

View File

@ -23,8 +23,6 @@
### ###
### common stuff ### common stuff
### ###
OK="\\033[70G[\\033[1;32mOK\\033[1;00m]"
FAIL="\\033[70G[\\033[1;31mFAILED\\033[1;00m]"
AUTOGEN_LOG=autogen.log AUTOGEN_LOG=autogen.log
@ -40,12 +38,12 @@ err ()
run () run ()
{ {
echo -n "Running \"$@\"" echo -n "Running \"$@\"..."
eval $@ >$AUTOGEN_LOG 2>&1 eval $@ >$AUTOGEN_LOG 2>&1
if [ $? = 0 ] ; then if [ $? = 0 ] ; then
echo -e $OK echo " OK"
else else
echo -e $FAIL echo " FAILED"
err err
fi fi
} }