# HG changeset patch # User "Yann E. MORIN" # Date 1217156054 0 # Node ID e9cbd9d6e7375d71c99a0a0b7019d42a33a4b7ce # Parent 9416a82ef7b47858fd729b016a41ec5dd0fc6776 When saving a sample, overide log file config: - do log to a file - do compress the log file /trunk/scripts/saveSample.sh | 6 4 2 0 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff -r 9416a82ef7b4 -r e9cbd9d6e737 scripts/saveSample.sh --- a/scripts/saveSample.sh Sat Jul 26 15:29:51 2008 +0000 +++ b/scripts/saveSample.sh Sun Jul 27 10:54:14 2008 +0000 @@ -42,8 +42,10 @@ fi # Save the crosstool-NG config file -sed -r -e 's|^(CT_PREFIX_DIR)=.*|\1="${HOME}/x-tools/${CT_TARGET}"|;' \ - <"${CT_TOP_DIR}/.config" \ +sed -r -e 's|^(CT_PREFIX_DIR)=.*|\1="${HOME}/x-tools/${CT_TARGET}"|;' \ + -e 's|^# CT_LOG_TO_FILE is not set$|CT_LOG_TO_FILE=y|;' \ + -e 's|^# CT_LOG_FILE_COMPRESS is not set$|CT_LOG_FILE_COMPRESS=y|;' \ + <"${CT_TOP_DIR}/.config" \ >"${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config" # Function to copy a file to the sample directory