summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-15 19:55:56 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-15 19:55:56 (GMT)
commit6cea94c0498f35386172941be360e410a250836c (patch)
tree8f80f7f8d60e90858bdc1b26018dbfbbf4ce428a /scripts
parent7858c9247300f7cc48cff806a9231263d0b4b7fe (diff)
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(-)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/saveSample.sh4
1 files changed, 3 insertions, 1 deletions
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)