mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
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:
parent
7858c92473
commit
6cea94c049
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user