summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-27 18:53:54 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-27 18:53:54 (GMT)
commitb79ffe16c64dbe3005888fd94eb5bd9f43443e94 (patch)
tree9f9112177bbe20152c835e6917d3c91ed3998153 /scripts/crosstool-NG.sh.in
parent6501c29fd1fa259fd836a94c363a6593d8db5a6a (diff)
Refuse to build/install on file systems that are *not* case-sensitive.
/trunk/scripts/crosstool-NG.sh.in | 9 9 0 0 +++++++++ 1 file changed, 9 insertions(+)
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index d8c493b..3e2fdc1 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -30,6 +30,11 @@
# Where will we work?
CT_WORK_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/targets}"
+CT_DoExecLog ALL mkdir -p "${CT_WORK_DIR}"
+
+# Check build file system case-sensitiveness
+touch "${CT_WORK_DIR}/foo"
+CT_TestAndAbort "Your file system in '${CT_WORK_DIR}' is *not* case-sensitive!" -f "${CT_WORK_DIR}/FOO"
# Create the bin-overide early
# Contains symlinks to the tools found by ./configure
@@ -195,6 +200,10 @@ CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}"
CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}"
CT_DoExecLog ALL mkdir -p "${CT_STATE_DIR}"
+# Check install file system case-sensitiveness
+touch "${CT_PREFIX_DIR}/foo"
+CT_TestAndAbort "Your file system in '${CT_PREFIX_DIR}' is *not* case-sensitive!" -f "${CT_PREFIX_DIR}/FOO"
+
# Kludge: CT_INSTALL_DIR and CT_PREFIX_DIR might have grown read-only if
# the previous build was successful. To be able to move the logfile there,
# switch them back to read/write