summaryrefslogtreecommitdiff
path: root/scripts/crosstool.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-22 21:16:17 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-22 21:16:17 (GMT)
commita7a625877cc14471b881efd5ab6f7e120147cbf1 (patch)
tree4fa3804e8fe78c91e120dee068545969b355af47 /scripts/crosstool.sh
parent4fad26e850893c7350f7a9dfa69e8916389d3128 (diff)
Be verbose when making build system tools available, and when access is removed. Log this to DEBUG.
Remove last remnants of color scheme. Small fixes to some comments.
Diffstat (limited to 'scripts/crosstool.sh')
-rwxr-xr-xscripts/crosstool.sh17
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index 58302a9..3414aca 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -304,11 +304,11 @@ if [ -z "${CT_RESTART}" ]; then
mkdir -p "${CT_PREFIX_DIR}/bin"
for tool in ar as dlltool gcc g++ gnatbind gnatmake ld nm ranlib strip windres objcopy objdump; do
if [ -n "`which ${tool}`" ]; then
- ln -s "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_BUILD}-${tool}"
+ ln -sv "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_BUILD}-${tool}"
case "${CT_TOOLCHAIN_TYPE}" in
- cross|native) ln -s "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_HOST}-${tool}";;
+ cross|native) ln -sv "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_HOST}-${tool}";;
esac
- fi
+ fi |CT_DoLog DEBUG
done
# Ha. cygwin host have an .exe suffix (extension) for executables.
@@ -435,21 +435,22 @@ if [ "${CT_ONLY_DOWNLOAD}" != "y" -a "${CT_ONLY_EXTRACT}" != "y" ]; then
rm -rf "${CT_SYSROOT_DIR}/"{,usr/}{man,info}
rm -rf "${CT_DEBUG_INSTALL_DIR}/"{,usr/}{man,info}
fi
+
+ CT_DoLog EXTRA "Removing access to the build system tools"
+ find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \+ |CT_DoLog DEBUG
+ find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \+ |CT_DoLog DEBUG
fi
# OK, now we're done, set the toolchain read-only
# Don't log, the log file may become read-only any moment...
chmod -R a-w "${CT_INSTALL_DIR}"
-# We stil have some small bits to log
+# We still have some small bits to log
chmod u+w "${CT_LOG_FILE}"
CT_DoEnd INFO
-# All files should now be read-only, log-file included
+# All files should now be read-only, log file included
chmod a-w "${CT_LOG_FILE}"
-# Restore a 'normal' color setting
-echo -en "${CT_NORMAL_COLOR}"
-
trap - EXIT