When saving a sample, force the prefix directory to be ${HOME}/x-tools/${CT_TARGET} .
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jun 15 19:55:56 2008 +0000 (2008-06-15)
changeset 562c2a68cba6c0c
parent 561 fbbe0e33dbac
child 563 27d28e055f94
When saving a sample, force the prefix directory to be ${HOME}/x-tools/${CT_TARGET} .

/trunk/scripts/saveSample.sh | 4 3 1 0 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
scripts/saveSample.sh
     1.1 --- a/scripts/saveSample.sh	Sun Jun 15 19:51:09 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)