1.1 --- a/scripts/crosstool.sh Tue Aug 07 18:05:41 2007 +0000
1.2 +++ b/scripts/crosstool.sh Sat Aug 11 14:59:36 2007 +0000
1.3 @@ -436,16 +436,22 @@
1.4 chmod 755 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
1.5
1.6 # Create the aliases to the target tools
1.7 - if [ -n "${CT_TARGET_ALIAS}" ]; then
1.8 - CT_DoLog EXTRA "Creating symlinks from \"${CT_TARGET}-*\" to \"${CT_TARGET_ALIAS}-*\""
1.9 - CT_Pushd "${CT_PREFIX_DIR}/bin"
1.10 - for t in "${CT_TARGET}-"*; do
1.11 + CT_DoStep EXTRA "Creating toolchain aliases"
1.12 + CT_Pushd "${CT_PREFIX_DIR}/bin"
1.13 + for t in "${CT_TARGET}-"*; do
1.14 + if [ -n "${CT_TARGET_ALIAS}" ]; then
1.15 _t="`echo \"$t\" |sed -r -e 's/^'\"${CT_TARGET}\"'-/'\"${CT_TARGET_ALIAS}\"'-/;'`"
1.16 CT_DoLog DEBUG "Linking \"${_t}\" -> \"${t}\""
1.17 - ln -sv "${t}" "${_t}" 2>&1 |CT_DoLog DEBUG
1.18 - done
1.19 - CT_Popd
1.20 - fi
1.21 + ln -sv "${t}" "${_t}" 2>&1 |CT_DoLog ALL
1.22 + fi
1.23 + if [ -n "${CT_TARGET_ALIAS_SED_EXPR}" ]; then
1.24 + _t="`echo \"$t\" |sed -r -e \"${CT_TARGET_ALIAS_SED_EXPR}\"`"
1.25 + CT_DoLog DEBUG "Linking \"${_t}\" -> \"${t}\""
1.26 + ln -sv "${t}" "${_t}" 2>&1 |CT_DoLog ALL
1.27 + fi
1.28 + done
1.29 + CT_Popd
1.30 + CT_EndStep
1.31
1.32 # Remove the generated documentation files
1.33 if [ "${CT_REMOVE_DOCS}" = "y" ]; then