Do not try to save new;y downloaded tarballs to local storage if the directory does not exist.
1.1 --- a/scripts/crosstool.sh Sun Sep 23 17:08:09 2007 +0000
1.2 +++ b/scripts/crosstool.sh Sun Sep 23 17:18:18 2007 +0000
1.3 @@ -99,8 +99,14 @@
1.4 # Make all path absolute, it so much easier!
1.5 CT_LOCAL_TARBALLS_DIR="`CT_MakeAbsolutePath \"${CT_LOCAL_TARBALLS_DIR}\"`"
1.6
1.7 +# If the local tarball directory does not exist, say so, and don't try to save there!
1.8 +if [ ! -d "${CT_LOCAL_TARBALLS_DIR}" ]; then
1.9 + CT_DoLog WARN "Directory \"${CT_LOCAL_TARBALLS_DIR}\" does not exist. Will not save downloaded tarballs to local storage."
1.10 + CT_SAVE_TARBALLS=""
1.11 +fi
1.12 +
1.13 # Some more sanity checks now that we have all paths set up
1.14 -case "${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in
1.15 +case "${CT_LOCAL_TARBALLS_DIR},${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in
1.16 *" "*) CT_Abort "Don't use spaces in paths, it breaks things.";;
1.17 esac
1.18