summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-12-05 21:25:18 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-12-05 21:25:18 +0000
commit5c1ec1adcaf5625a89690f6118b85f4c320933f4 (patch)
tree2657cbe80455aa4509da9b796b3ed195c73e41a4
parentcbc8e0b7ea70c0e118b51ac479a08eb95a9779ca (diff)
downloadmidipix_build-5c1ec1adcaf5625a89690f6118b85f4c320933f4.tar.bz2
midipix_build-5c1ec1adcaf5625a89690f6118b85f4c320933f4.tar.xz
build.sh: log step_pkg in blue at -v[v[v]].
subr/ex_rtl_log.subr, vars/env.vars: adds `vucc' & ${DEFAULT_LOG_MSG_VUCC_COLOUR}.
-rwxr-xr-xbuild.sh2
-rw-r--r--subr/ex_rtl_log.subr2
-rw-r--r--vars/env.vars1
3 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 945cc219..eb143232 100755
--- a/build.sh
+++ b/build.sh
@@ -54,7 +54,7 @@ buildp_dispatch() {
fi; ;;
disabled_pkg) ex_rtl_log_msg vnfo "Skipping disabled package \`${_pkg_name}.'"; ;;
skipped_pkg) ex_rtl_log_msg vnfo "Skipping finished package \`${_pkg_name}.'"; ;;
- step_pkg) ex_rtl_log_msg vnfo "Finished build step ${4} of package \`${_pkg_name}'."; ;;
+ step_pkg) ex_rtl_log_msg vucc "Finished build step ${4} of package \`${_pkg_name}'."; ;;
# Child process
exec_finish) ;;
diff --git a/subr/ex_rtl_log.subr b/subr/ex_rtl_log.subr
index 43e22ec8..45dbc8df 100644
--- a/subr/ex_rtl_log.subr
+++ b/subr/ex_rtl_log.subr
@@ -27,6 +27,7 @@ ex_rtl_log_set_vnfo_lvl() {
ex_rtl_log_msg() {
local _lvl="${1}"; shift;
if [ "${_lvl}" = vnfo ]\
+ || [ "${_lvl}" = vucc ]\
&& [ "${EXP_RTL_LOG_VNFO_LVL:-0}" -lt 1 ]; then
return;
elif [ "${_lvl}" = vvfo ]\
@@ -46,6 +47,7 @@ ex_rtl_log_msg() {
vvvo) printf "\033[0m\033[${DEFAULT_LOG_MSG_VVVO_COLOUR}m"; ;;
succ) printf "\033[0m\033[${DEFAULT_LOG_MSG_SUCC_COLOUR}m"; ;;
suc2) printf "\033[0m\033[${DEFAULT_LOG_MSG_SUC2_COLOUR}m"; ;;
+ vucc) printf "\033[0m\033[${DEFAULT_LOG_MSG_VUCC_COLOUR}m"; ;;
esac;
if [ ${#} -gt 1 ]; then
printf "==> %s %s %s\033[0m\n" "$(ex_rtl_date)" "${1}" "$*";
diff --git a/vars/env.vars b/vars/env.vars
index 5d2206df..1486fa28 100644
--- a/vars/env.vars
+++ b/vars/env.vars
@@ -23,6 +23,7 @@ DEFAULT_LOG_MSG_INF2_COLOUR=33;
DEFAULT_LOG_MSG_SUCC_COLOUR=92;
DEFAULT_LOG_MSG_SUC2_COLOUR=32;
DEFAULT_LOG_MSG_VNFO_COLOUR=96;
+DEFAULT_LOG_MSG_VUCC_COLOUR=94;
DEFAULT_LOG_MSG_VVFO_COLOUR=96;
DEFAULT_LOG_MSG_VVVO_COLOUR=96;
DEFAULT_TIMESTAMP_FMT="%Y/%m/%d %H:%M:%S";