summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)