otatools: build-with-colors

- add new file for common functions and stuff
 - though it doesn't contain any function now ;)
- red color for errors
- yellow color for "Optimizing: *"
- cyan color for modversion :)
- green color for "package complete"
- and some general cleanup

Change-Id: I83b2e352580e99b1766c5e63821281224cde5c49
This commit is contained in:
Chirayu Desai
2012-10-13 16:10:45 +05:30
parent 260d3ac925
commit 39cb878292
3 changed files with 40 additions and 21 deletions

15
tools/functions Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Common functions for CM otatools
#
# cdesai
if [ ! "$BUILD_WITH_COLORS" = "0" ];
then
CL_RED="\033[31m"
CL_GRN="\033[32m"
CL_YLW="\033[33m"
CL_BLU="\033[34m"
CL_MAG="\033[35m"
CL_CYN="\033[36m"
CL_RST="\033[0m"
fi