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(+)
1.1 --- a/scripts/crosstool-NG.sh.in Thu Mar 26 18:58:13 2009 +0000
1.2 +++ b/scripts/crosstool-NG.sh.in Fri Mar 27 18:53:54 2009 +0000
1.3 @@ -30,6 +30,11 @@
1.4
1.5 # Where will we work?
1.6 CT_WORK_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/targets}"
1.7 +CT_DoExecLog ALL mkdir -p "${CT_WORK_DIR}"
1.8 +
1.9 +# Check build file system case-sensitiveness
1.10 +touch "${CT_WORK_DIR}/foo"
1.11 +CT_TestAndAbort "Your file system in '${CT_WORK_DIR}' is *not* case-sensitive!" -f "${CT_WORK_DIR}/FOO"
1.12
1.13 # Create the bin-overide early
1.14 # Contains symlinks to the tools found by ./configure
1.15 @@ -195,6 +200,10 @@
1.16 CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}"
1.17 CT_DoExecLog ALL mkdir -p "${CT_STATE_DIR}"
1.18
1.19 +# Check install file system case-sensitiveness
1.20 +touch "${CT_PREFIX_DIR}/foo"
1.21 +CT_TestAndAbort "Your file system in '${CT_PREFIX_DIR}' is *not* case-sensitive!" -f "${CT_PREFIX_DIR}/FOO"
1.22 +
1.23 # Kludge: CT_INSTALL_DIR and CT_PREFIX_DIR might have grown read-only if
1.24 # the previous build was successful. To be able to move the logfile there,
1.25 # switch them back to read/write