1.1 --- a/scripts/crosstool-NG.sh.in Wed May 27 21:08:17 2009 +0000
1.2 +++ b/scripts/crosstool-NG.sh.in Mon Jun 22 21:51:14 2009 +0200
1.3 @@ -147,9 +147,20 @@
1.4 fi
1.5
1.6 # Some more sanity checks now that we have all paths set up
1.7 -case "${CT_LOCAL_TARBALLS_DIR},${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in
1.8 - *" "*) CT_Abort "Don't use spaces in paths, it breaks things.";;
1.9 -esac
1.10 +for d in \
1.11 + LOCAL_TARBALLS \
1.12 + WORK \
1.13 + PREFIX \
1.14 + INSTALL \
1.15 + ; do
1.16 + eval dir="\${CT_${d}_DIR}"
1.17 + case "${dir}" in
1.18 + *" "*)
1.19 + CT_DoLog ERROR "'CT_${d}_DIR'='${dir}' contains a space in it."
1.20 + CT_Abort "Don't use spaces in paths, it breaks things."
1.21 + ;;
1.22 + esac
1.23 +done
1.24
1.25 # Check now if we can write to the destination directory:
1.26 if [ -d "${CT_INSTALL_DIR}" ]; then