Upgrade scripts/tarball.sh and scripts/saveSample.sh to use the new logging facility.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 22 20:33:43 2007 +0000 (2007-05-22)
changeset 11595ca955e8a58
parent 114 2dace56fc87e
child 116 c0846c936c07
Upgrade scripts/tarball.sh and scripts/saveSample.sh to use the new logging facility.
scripts/saveSample.sh
scripts/tarball.sh
     1.1 --- a/scripts/saveSample.sh	Mon May 21 22:01:28 2007 +0000
     1.2 +++ b/scripts/saveSample.sh	Tue May 22 20:33:43 2007 +0000
     1.3 @@ -10,8 +10,8 @@
     1.4  
     1.5  . "${CT_TOP_DIR}/scripts/functions"
     1.6  
     1.7 -# Log to a temporary file until we have built our environment
     1.8 -CT_ACTUAL_LOG_FILE="${CT_TOP_DIR}/$$.log"
     1.9 +exec 6>&1
    1.10 +exec >/dev/null
    1.11  
    1.12  # Override log level
    1.13  unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG 
    1.14 @@ -86,5 +86,3 @@
    1.15  svn add "${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config" >/dev/null 2>&1
    1.16  
    1.17  svn stat "${CT_TOP_DIR}/samples/${CT_TARGET}" 2>/dev/null |CT_DoLog INFO
    1.18 -
    1.19 -rm -f "${CT_ACTUAL_LOG_FILE}"
     2.1 --- a/scripts/tarball.sh	Mon May 21 22:01:28 2007 +0000
     2.2 +++ b/scripts/tarball.sh	Tue May 22 20:33:43 2007 +0000
     2.3 @@ -9,8 +9,8 @@
     2.4  # We need the functions first:
     2.5  . "${CT_TOP_DIR}/scripts/functions"
     2.6  
     2.7 -# Log to a temporary file until we have built our environment
     2.8 -CT_ACTUAL_LOG_FILE="${CT_TOP_DIR}/$$.log"
     2.9 +exec 6>&1
    2.10 +exec >/dev/null
    2.11  
    2.12  # Override log level
    2.13  unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG
    2.14 @@ -85,4 +85,3 @@
    2.15  
    2.16  rm -f "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2"
    2.17  rm -rf "${tempdir}"
    2.18 -rm -f "${CT_TOP_DIR}/$$.log"