1.1 --- a/scripts/crosstool.sh Tue May 22 20:46:07 2007 +0000
1.2 +++ b/scripts/crosstool.sh Wed May 23 20:49:02 2007 +0000
1.3 @@ -304,11 +304,11 @@
1.4 mkdir -p "${CT_PREFIX_DIR}/bin"
1.5 for tool in ar as dlltool gcc g++ gnatbind gnatmake ld nm ranlib strip windres objcopy objdump; do
1.6 if [ -n "`which ${tool}`" ]; then
1.7 - ln -s "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_BUILD}-${tool}"
1.8 + ln -sv "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_BUILD}-${tool}"
1.9 case "${CT_TOOLCHAIN_TYPE}" in
1.10 - cross|native) ln -s "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_HOST}-${tool}";;
1.11 + cross|native) ln -sv "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_HOST}-${tool}";;
1.12 esac
1.13 - fi
1.14 + fi |CT_DoLog DEBUG
1.15 done
1.16
1.17 # Ha. cygwin host have an .exe suffix (extension) for executables.
1.18 @@ -435,21 +435,22 @@
1.19 rm -rf "${CT_SYSROOT_DIR}/"{,usr/}{man,info}
1.20 rm -rf "${CT_DEBUG_INSTALL_DIR}/"{,usr/}{man,info}
1.21 fi
1.22 +
1.23 + CT_DoLog EXTRA "Removing access to the build system tools"
1.24 + find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \+ |CT_DoLog DEBUG
1.25 + find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \+ |CT_DoLog DEBUG
1.26 fi
1.27
1.28 # OK, now we're done, set the toolchain read-only
1.29 # Don't log, the log file may become read-only any moment...
1.30 chmod -R a-w "${CT_INSTALL_DIR}"
1.31
1.32 -# We stil have some small bits to log
1.33 +# We still have some small bits to log
1.34 chmod u+w "${CT_LOG_FILE}"
1.35
1.36 CT_DoEnd INFO
1.37
1.38 -# All files should now be read-only, log-file included
1.39 +# All files should now be read-only, log file included
1.40 chmod a-w "${CT_LOG_FILE}"
1.41
1.42 -# Restore a 'normal' color setting
1.43 -echo -en "${CT_NORMAL_COLOR}"
1.44 -
1.45 trap - EXIT