# HG changeset patch # User "Yann E. MORIN" # Date 1213559756 0 # Node ID c2a68cba6c0cfd1dabbeaa91bd0a22c0c20794c5 # Parent fbbe0e33dbacc760951813205e8ca2ac484309e1 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(-) diff -r fbbe0e33dbac -r c2a68cba6c0c scripts/saveSample.sh --- a/scripts/saveSample.sh Sun Jun 15 19:51:09 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)