diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-13 00:42:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-13 00:42:32 +0100 |
commit | cbad193ed6ae24e487db0f700f0308d5185ee1e9 (patch) | |
tree | 6c606db93f6772f0f03a1904e934dd619bcb4f8a /scripts | |
parent | 3e9ec766c9b289becc53fba5fc57eb20723eeab7 (diff) |
optimize case-sensitive filesystem checks
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/scan-tools.sh | 30 |
1 files changed, 14 insertions, 16 deletions
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 |