diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-15 19:55:56 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-15 19:55:56 +0000 |
commit | 6cea94c0498f35386172941be360e410a250836c (patch) | |
tree | 8f80f7f8d60e90858bdc1b26018dbfbbf4ce428a /scripts/saveSample.sh | |
parent | 7858c9247300f7cc48cff806a9231263d0b4b7fe (diff) | |
download | crosstool-ng-6cea94c0498f35386172941be360e410a250836c.tar.gz crosstool-ng-6cea94c0498f35386172941be360e410a250836c.tar.bz2 crosstool-ng-6cea94c0498f35386172941be360e410a250836c.zip |
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/saveSample.sh')
-rwxr-xr-x | scripts/saveSample.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/saveSample.sh b/scripts/saveSample.sh index d9907310..c09eec9e 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) |