diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-27 10:54:14 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-27 10:54:14 +0000 |
commit | c8d64d9c708e5061b4249e52cfdc4a256ee834a7 (patch) | |
tree | abaab04eb4414aac9205998052cbdbd4c983d879 /scripts/saveSample.sh | |
parent | 1910e80fd2654f539b9d50bc0f405662ce3d5f03 (diff) | |
download | crosstool-ng-c8d64d9c708e5061b4249e52cfdc4a256ee834a7.tar.gz crosstool-ng-c8d64d9c708e5061b4249e52cfdc4a256ee834a7.tar.bz2 crosstool-ng-c8d64d9c708e5061b4249e52cfdc4a256ee834a7.zip |
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(-)
Diffstat (limited to 'scripts/saveSample.sh')
-rwxr-xr-x | scripts/saveSample.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/saveSample.sh b/scripts/saveSample.sh index a07252df..6cd85412 100755 --- a/scripts/saveSample.sh +++ b/scripts/saveSample.sh @@ -42,8 +42,10 @@ if [ ! -d "${CT_TOP_DIR}/samples/${CT_TARGET}" ]; then 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 |