From b60a47359b081368aa1e83ccd1addc140a18c0cb Mon Sep 17 00:00:00 2001 From: George Danchev Date: Sat, 9 Jul 2011 16:27:43 +0000 Subject: [PATCH] use tput to highlight some FAILs --- libisoburn/trunk/releng/run_all_releng | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/libisoburn/trunk/releng/run_all_releng b/libisoburn/trunk/releng/run_all_releng index 263e0a0f..b37f9869 100755 --- a/libisoburn/trunk/releng/run_all_releng +++ b/libisoburn/trunk/releng/run_all_releng @@ -83,7 +83,14 @@ fi printf "done in ${TS} sec. ok." ;; *) - printf "done in ${TS} sec. FAIL. EXIT CODE: $RET;" + if which tput >/dev/null 2>&1; then + printf "done in ${TS} sec." + tput smso + printf " FAIL. EXIT CODE: $RET;" + tput rmso + else + printf "done in ${TS} sec. FAIL. EXIT CODE: $RET;" + fi ;; esac set -e @@ -150,7 +157,14 @@ fi fi # - printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" + if which tput >/dev/null 2>&1; then + tput smso + printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" + tput rmso + else + printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" + fi + ls -lth "${GEN_DATA_DIR}" # Fin