mirror of
https://github.com/mi57730/a2d.git
synced 2024-11-25 10:30:50 +00:00
16 lines
347 B
Bash
16 lines
347 B
Bash
function cecho {
|
|
case $1 in
|
|
red) tput setaf 1 ; shift ;;
|
|
green) tput setaf 2 ; shift ;;
|
|
yellow) tput setaf 3 ; shift ;;
|
|
esac
|
|
echo -e "$@"
|
|
tput sgr0
|
|
}
|
|
|
|
function do_make {
|
|
make $MAKE_FLAGS "$1" \
|
|
&& (cecho green "make $1 good") \
|
|
|| (tput blink ; cecho red "MAKE $1 BAD" ; return 1)
|
|
}
|