From 6cea94c0498f35386172941be360e410a250836c Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 15 Jun 2008 19:55:56 +0000 Subject: 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 --git a/scripts/saveSample.sh b/scripts/saveSample.sh index d990731..c09eec9 100755 --- a/scripts/saveSample.sh +++ b/scripts/saveSample.sh @@ -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) -- cgit v0.10.2-6-g49f6