From 6ebf28b2bd4aaf32545171565149c5b4e2565985 Mon Sep 17 00:00:00 2001 From: rudson Date: Sun, 10 Jun 2007 15:24:59 +0000 Subject: mkbuild-0.9.1, createpkg-1.0.5.3 e adição de eecho e color_select a common.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@385 04377dda-e619-0410-9926-eae83683ac58 --- branches/0.6/src/createpkg | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) (limited to 'branches/0.6/src/createpkg') diff --git a/branches/0.6/src/createpkg b/branches/0.6/src/createpkg index a15e27c..a1ba65b 100644 --- a/branches/0.6/src/createpkg +++ b/branches/0.6/src/createpkg @@ -55,16 +55,6 @@ function error_codes { SCRIPT_OR_PACKAGE_NOT_FOUND=202 # Script or package not found } -function eecho { - - # echoes a message - # usage: eecho - # message-type can be: commun, messag, error, normal - - echo -e "${1}${2}${normal}" - -} - function handle_error { # This function deals with internal createpkg errors @@ -299,39 +289,6 @@ function list_builds { } -function color_select { - - # Select color mode: gray, color or none (*) - # commun - Communication - # messag - Commum messages - # error - Error messages - # normal - turn off color - case "$1" in - 'gray') - commun="\033[37;1m" - messag="\033[37;1m" - error="\033[30;1m" - alert="\033[37m" - normal="\033[m" - ;; - 'color') - commun="\033[34;1m" # green - messag="\033[32;1m" # blue - error="\033[31;1m" # red - alert="\033[33;1m" # yellow - normal="\033[m" # normal - ;; - *) - commun="" - messag="" - error="" - alert="" - normal="" - ;; - esac - -} - #--------------------------------------------------- # Starting createpkg #--------------------------------------------------- @@ -371,7 +328,7 @@ else fi # Select color mode: gray, color or none (*) -color_select $COLOR +color_select $COLOR_MODE # This is used to show how many children process we have if [ -z "$CREATEPKG_CHILD" ]; then -- cgit v1.2.3