Correctly handle the log level overide in scripts/saveSample.sh.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 23 19:07:54 2007 +0000 (2007-05-23)
changeset 126cf871e2cccc9
parent 125 79cbbb9b63f3
child 127 2ba6a8d5d4be
Correctly handle the log level overide in scripts/saveSample.sh.
Little eye candy in scripts/showSamples.sh.
scripts/saveSample.sh
scripts/showSamples.sh
     1.1 --- a/scripts/saveSample.sh	Tue May 22 21:19:47 2007 +0000
     1.2 +++ b/scripts/saveSample.sh	Wed May 23 19:07:54 2007 +0000
     1.3 @@ -13,11 +13,6 @@
     1.4  exec 6>&1
     1.5  exec >/dev/null
     1.6  
     1.7 -# Override log level
     1.8 -unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG 
     1.9 -CT_LOG_INFO=y
    1.10 -CT_LOG_LEVEL_MAX="INFO"
    1.11 -
    1.12  # Parse the configuration file
    1.13  CT_TestOrAbort "Configuration file not found. Please create one." -f "${CT_TOP_DIR}/.config"
    1.14  . "${CT_TOP_DIR}/.config"
    1.15 @@ -29,6 +24,11 @@
    1.16  # re-parse them:
    1.17  . "${CT_TOP_DIR}/.config"
    1.18  
    1.19 +# Override log level
    1.20 +unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG 
    1.21 +CT_LOG_INFO=y
    1.22 +CT_LOG_LEVEL_MAX="INFO"
    1.23 +
    1.24  # Create the sample directory
    1.25  # In case it was manually made, add it to svn
    1.26  if [ -d "${CT_TOP_DIR}/samples/${CT_TARGET}" ]; then
     2.1 --- a/scripts/showSamples.sh	Tue May 22 21:19:47 2007 +0000
     2.2 +++ b/scripts/showSamples.sh	Wed May 23 19:07:54 2007 +0000
     2.3 @@ -14,8 +14,8 @@
     2.4      printf "  %-*s" ${width} "${sample}"
     2.5      [ -f "${CT_TOP_DIR}/samples/${sample}/broken" ] && printf "  (broken)"
     2.6      echo
     2.7 -    echo "    | ${CT_KERNEL}-${CT_KERNEL_VERSION} binutils-${CT_BINUTILS_VERSION}"
     2.8 -    echo "    \ ${CT_CC}-${CT_CC_VERSION} ${CT_LIBC}-${CT_LIBC_VERSION}"
     2.9 +    echo "   \   ${CT_KERNEL}-${CT_KERNEL_VERSION} binutils-${CT_BINUTILS_VERSION}"
    2.10 +    echo "    \_ ${CT_CC}-${CT_CC_VERSION} ${CT_LIBC}-${CT_LIBC_VERSION}"
    2.11  }
    2.12  
    2.13  # Get largest sample width