Do not try to save new;y downloaded tarballs to local storage if the directory does not exist.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 23 17:18:18 2007 +0000 (2007-09-23)
changeset 4035c2145db8f0f
parent 402 197e1b49586e
child 404 890a97535740
Do not try to save new;y downloaded tarballs to local storage if the directory does not exist.
scripts/crosstool.sh
     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