From cf87d3067a63cb8be315a3addfd9c27d86be3b5a Mon Sep 17 00:00:00 2001 From: baigk Date: Tue, 8 Sep 2015 07:47:19 -0400 Subject: Build improvement for speedup and using public repo JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk --- util/log.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 util/log.sh (limited to 'util/log.sh') diff --git a/util/log.sh b/util/log.sh new file mode 100755 index 00000000..f54fdca5 --- /dev/null +++ b/util/log.sh @@ -0,0 +1,22 @@ +#!/bin/bash +reset=`tput sgr0` +red=`tput setaf 1` +green=`tput setaf 2` +yellow=`tput setaf 3` + +function log_info() { + echo -e "${green}$*${reset}" +} + +function log_warn() { + echo -e "${yellow}$*${reset}" +} + +function log_error() { + echo -e "${red}$*${reset}" +} + +function log_progress() { + echo -en "${yellow}$*\r${reset}" +} + -- cgit 1.2.3-korg