Only priunt WARNings when saving the current configuration.
Eye-candy in code.
/trunk/scripts/saveSample.sh | 10 5 5 0 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
1.1 --- a/scripts/saveSample.sh Fri Jun 20 15:16:43 2008 +0000
1.2 +++ b/scripts/saveSample.sh Sun Jun 22 17:30:37 2008 +0000
1.3 @@ -29,9 +29,9 @@
1.4 . "${CT_TOP_DIR}/.config"
1.5
1.6 # Override log level
1.7 -unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG
1.8 -CT_LOG_INFO=y
1.9 -CT_LOG_LEVEL_MAX="INFO"
1.10 +unset CT_LOG_ERROR CT_LOG_INFO CT_LOG_EXTRA CT_LOG_DEBUG LOG_ALL
1.11 +CT_LOG_WARN=y
1.12 +CT_LOG_LEVEL_MAX="WARN"
1.13
1.14 # Create the sample directory
1.15 if [ ! -d "${CT_TOP_DIR}/samples/${CT_TARGET}" ]; then
1.16 @@ -39,8 +39,8 @@
1.17 fi
1.18
1.19 # Save the crosstool-NG config file
1.20 -sed -r -e 's|^(CT_PREFIX_DIR)=.*|\1="${HOME}/x-tools/${CT_TARGET}"|;' \
1.21 - <"${CT_TOP_DIR}/.config" \
1.22 +sed -r -e 's|^(CT_PREFIX_DIR)=.*|\1="${HOME}/x-tools/${CT_TARGET}"|;' \
1.23 + <"${CT_TOP_DIR}/.config" \
1.24 >"${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config"
1.25
1.26 # Function to copy a file to the sample directory