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:
parent
66ff8b735b
commit
3c5301226a
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user