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(-)
This commit is contained in:
Yann E. MORIN" 2008-06-15 19:55:56 +00:00
parent 7858c92473
commit 6cea94c049

View File

@ -39,7 +39,9 @@ if [ ! -d "${CT_TOP_DIR}/samples/${CT_TARGET}" ]; then
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)