# HG changeset patch # User "Yann E. MORIN" # Date 1179866023 0 # Node ID 95ca955e8a5862861d95eb6ca21d612722b69e6c # Parent 2dace56fc87e543212695cb45057fedb5f31b133 Upgrade scripts/tarball.sh and scripts/saveSample.sh to use the new logging facility. diff -r 2dace56fc87e -r 95ca955e8a58 scripts/saveSample.sh --- a/scripts/saveSample.sh Mon May 21 22:01:28 2007 +0000 +++ b/scripts/saveSample.sh Tue May 22 20:33:43 2007 +0000 @@ -10,8 +10,8 @@ . "${CT_TOP_DIR}/scripts/functions" -# Log to a temporary file until we have built our environment -CT_ACTUAL_LOG_FILE="${CT_TOP_DIR}/$$.log" +exec 6>&1 +exec >/dev/null # Override log level unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG @@ -86,5 +86,3 @@ svn add "${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config" >/dev/null 2>&1 svn stat "${CT_TOP_DIR}/samples/${CT_TARGET}" 2>/dev/null |CT_DoLog INFO - -rm -f "${CT_ACTUAL_LOG_FILE}" diff -r 2dace56fc87e -r 95ca955e8a58 scripts/tarball.sh --- a/scripts/tarball.sh Mon May 21 22:01:28 2007 +0000 +++ b/scripts/tarball.sh Tue May 22 20:33:43 2007 +0000 @@ -9,8 +9,8 @@ # We need the functions first: . "${CT_TOP_DIR}/scripts/functions" -# Log to a temporary file until we have built our environment -CT_ACTUAL_LOG_FILE="${CT_TOP_DIR}/$$.log" +exec 6>&1 +exec >/dev/null # Override log level unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG @@ -85,4 +85,3 @@ rm -f "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2" rm -rf "${tempdir}" -rm -f "${CT_TOP_DIR}/$$.log"