diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-22 20:33:43 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-22 20:33:43 (GMT) |
commit | 6f797c35f063a60f88a3c9e60cddc8254d1d9151 (patch) | |
tree | 0c4569766ca75f76e80e444f5400454d6bf326df /scripts | |
parent | d3b53b8a206554cc004b828142d08a3b45adfbfb (diff) |
Upgrade scripts/tarball.sh and scripts/saveSample.sh to use the new logging facility.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/saveSample.sh | 6 | ||||
-rwxr-xr-x | scripts/tarball.sh | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/scripts/saveSample.sh b/scripts/saveSample.sh index 1771ba8..e743550 100755 --- a/scripts/saveSample.sh +++ b/scripts/saveSample.sh @@ -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 @@ fi 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 --git a/scripts/tarball.sh b/scripts/tarball.sh index 1333f7b..70ebd92 100755 --- a/scripts/tarball.sh +++ b/scripts/tarball.sh @@ -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 @@ tar cfj "${botdir}/${CT_TARGET}.tar.bz2" "${CT_PREFIX_DIR}" 2>/dev/null rm -f "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2" rm -rf "${tempdir}" -rm -f "${CT_TOP_DIR}/$$.log" |