scripts/saveSample.sh
changeset 562 c2a68cba6c0c
parent 523 010f6f4e4dd6
child 574 d9326d33ae32
     1.1 --- a/scripts/saveSample.sh	Tue May 20 21:32:39 2008 +0000
     1.2 +++ b/scripts/saveSample.sh	Sun Jun 15 19:55:56 2008 +0000
     1.3 @@ -39,7 +39,9 @@
     1.4  fi
     1.5  
     1.6  # Save the crosstool-NG config file
     1.7 -cp "${CT_TOP_DIR}/.config" "${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config"
     1.8 +sed -r -e 's|^(CT_PREFIX_DIR)=.*|\1=${HOME}/x-tools/${CT_TARGET}|;' \
     1.9 +    <"${CT_TOP_DIR}/.config"                                        \
    1.10 +    >"${CT_TOP_DIR}/samples/${CT_TARGET}/crosstool.config"
    1.11  
    1.12  # Function to copy a file to the sample directory
    1.13  # Needed in case the file is already there (think of a previously available sample)