diff -r 010f6f4e4dd6 -r c2a68cba6c0c scripts/saveSample.sh --- a/scripts/saveSample.sh Tue May 20 21:32:39 2008 +0000 +++ b/scripts/saveSample.sh Sun Jun 15 19:55:56 2008 +0000 @@ -39,7 +39,9 @@ fi # Save the crosstool-NG config file -cp "${CT_TOP_DIR}/.config" "${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config" +sed -r -e 's|^(CT_PREFIX_DIR)=.*|\1=${HOME}/x-tools/${CT_TARGET}|;' \ + <"${CT_TOP_DIR}/.config" \ + >"${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config" # Function to copy a file to the sample directory # Needed in case the file is already there (think of a previously available sample)