From cbad193ed6ae24e487db0f700f0308d5185ee1e9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 13 Nov 2010 00:42:32 +0100 Subject: optimize case-sensitive filesystem checks --- scripts/scan-tools.sh | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'scripts') diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index 5dd19a645..ed939d9ca 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -21,46 +21,44 @@ rm -rf $topdir/tmp mkdir -p $topdir/tmp cd $topdir/tmp +os=$(uname) + rm -f foo echo >FOO if [[ -e foo ]]; then cat >&2 <<-EOF ERROR: OpenADK cannot be built in a case-insensitive file system. EOF + case $os in + CYG*) + echo "Building OpenADK on $os needs a small registry change." + echo 'http://cygwin.com/cygwin-ug-net/using-specialnames.html' + ;; + Darwin*) + echo "Building OpenADK on $os needs a case-sensitive disk partition." + echo "For Snow Leopard and above you can use diskutil to resize your existing disk." + echo "For older versions you might consider to use a disk image." + echo "Example: sudo diskutil resizeVolume disk0s2 90G 1 jhfsx adk 30G" + ;; + esac exit 1 fi rm -f FOO -os=$(uname) case $os in Linux) - # supported with no extra quirks at the moment ;; FreeBSD) - # supported with no extra quirks at the moment ;; MirBSD) - # supported with no extra quirks at the moment ;; CYG*) - echo "Building OpenADK on $os needs a small registry change." - echo 'http://cygwin.com/cygwin-ug-net/using-specialnames.html' - echo "You can ignore this message, when you already done the change" - sleep 3 ;; NetBSD) - # supported with no extra quirks at the moment ;; OpenBSD) - # supported with no extra quirks at the moment - # although some packages' autoconf scripts may - # not properly recognise OpenBSD ;; Darwin*) - echo "Building OpenADK on $os needs a case-sensitive disk partition." - echo "For Snow Leopard and above you can use diskutil to resize your existing disk." - echo "For older versions you might consider to use a disk image" - echo "Example: sudo diskutil resizeVolume disk0s2 90G 1 jhfsx adk 30G" ;; *) # unsupported -- cgit v1.2.3