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(+)
This commit is contained in:
Yann E. MORIN" 2009-03-27 18:53:54 +00:00
parent 6501c29fd1
commit b79ffe16c6

View File

@ -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