summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-23 17:18:18 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-23 17:18:18 (GMT)
commit8891e25cd613eea0f06d409b151cd026338b4734 (patch)
treebbc7213608d430a7b39a7e2018df3813343054f8
parentb1e693e40281dc8c451e8892dfcdf55d78a4ade3 (diff)
Do not try to save new;y downloaded tarballs to local storage if the directory does not exist.
-rwxr-xr-xscripts/crosstool.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index 779bf90..1405ca5 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -99,8 +99,14 @@ fi
# Make all path absolute, it so much easier!
CT_LOCAL_TARBALLS_DIR="`CT_MakeAbsolutePath \"${CT_LOCAL_TARBALLS_DIR}\"`"
+# If the local tarball directory does not exist, say so, and don't try to save there!
+if [ ! -d "${CT_LOCAL_TARBALLS_DIR}" ]; then
+ CT_DoLog WARN "Directory \"${CT_LOCAL_TARBALLS_DIR}\" does not exist. Will not save downloaded tarballs to local storage."
+ CT_SAVE_TARBALLS=""
+fi
+
# Some more sanity checks now that we have all paths set up
-case "${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in
+case "${CT_LOCAL_TARBALLS_DIR},${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in
*" "*) CT_Abort "Don't use spaces in paths, it breaks things.";;
esac