scripts/functions
changeset 2154 250cdcc86441
parent 2130 b46ecc90d3ab
child 2155 5374ab57d331
     1.1 --- a/scripts/functions	Sun Oct 03 23:10:46 2010 +0200
     1.2 +++ b/scripts/functions	Fri Oct 22 22:02:57 2010 +0200
     1.3 @@ -49,8 +49,10 @@
     1.4  CT_LOG_LEVEL_WARN=1
     1.5  CT_LOG_LEVEL_INFO=2
     1.6  CT_LOG_LEVEL_EXTRA=3
     1.7 -CT_LOG_LEVEL_ALL=4
     1.8 -CT_LOG_LEVEL_DEBUG=5
     1.9 +CT_LOG_LEVEL_CFG=4
    1.10 +CT_LOG_LEVEL_FILE=5
    1.11 +CT_LOG_LEVEL_ALL=6
    1.12 +CT_LOG_LEVEL_DEBUG=7
    1.13  
    1.14  # Make it easy to use \n and !
    1.15  CR=$(printf "\n")
    1.16 @@ -63,6 +65,8 @@
    1.17  #   - INFO:    Informational messages
    1.18  #   - EXTRA:   Extra informational messages
    1.19  #   - DEBUG:   Debug messages
    1.20 +#   - CFG:     Output of various "./configure"-type scripts
    1.21 +#   - FILE:    File / archive unpacking.
    1.22  #   - ALL:     Component's build messages
    1.23  # Usage: CT_DoLog <level> [message]
    1.24  # If message is empty, then stdin will be logged.
    1.25 @@ -671,9 +675,9 @@
    1.26  
    1.27      CT_DoLog EXTRA "Extracting '${basename}'"
    1.28      case "${ext}" in
    1.29 -        .tar.bz2)     CT_DoExecLog ALL tar xvjf "${full_file}";;
    1.30 -        .tar.gz|.tgz) CT_DoExecLog ALL tar xvzf "${full_file}";;
    1.31 -        .tar)         CT_DoExecLog ALL tar xvf  "${full_file}";;
    1.32 +        .tar.bz2)     CT_DoExecLog FILE tar xvjf "${full_file}";;
    1.33 +        .tar.gz|.tgz) CT_DoExecLog FILE tar xvzf "${full_file}";;
    1.34 +        .tar)         CT_DoExecLog FILE tar xvf  "${full_file}";;
    1.35          /.git)        CT_ExtractGit "${basename}" "${@}";;
    1.36          *)            CT_Abort "Don't know how to handle '${basename}${ext}': unknown extension";;
    1.37      esac
    1.38 @@ -729,7 +733,7 @@
    1.39  
    1.40      case "${ref_type}" in
    1.41          none)   ;;
    1.42 -        *)      CT_DoExecLog ALL git checkout "${ref}";;
    1.43 +        *)      CT_DoExecLog FILE git checkout "${ref}";;
    1.44      esac
    1.45  
    1.46      CT_Popd