Browse Source

gnu tar fixes for MacOS X host

Waldemar Brodkorb 14 years ago
parent
commit
702e216210
2 changed files with 15 additions and 3 deletions
  1. 11 3
      scripts/scan-tools.sh
  2. 4 0
      scripts/tar

+ 11 - 3
scripts/scan-tools.sh

@@ -56,6 +56,12 @@ OpenBSD)
 	# 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
 	echo "Building OpenADK on $os is currently unsupported."
@@ -105,9 +111,11 @@ fi
 
 if ! (tar --version | grep GNU) >/dev/null 2>&1;then
 	if ! which gtar >/dev/null 2>&1; then
-		echo You must install GNU tar to continue.
-		echo
-		out=1
+		if ! which gnutar >/dev/null 2>&1; then
+			echo You must install GNU tar to continue.
+			echo
+			out=1
+		fi
 	fi
 fi
 

+ 4 - 0
scripts/tar

@@ -3,11 +3,15 @@
 # material, please see the LICENCE file in the top-level directory.
 
 if [ -z "$(which gtar 2>/dev/null)" ];then
+  if [ -z "$(which gnutar 2>/dev/null)" ];then
 	if [ -x /usr/bin/tar ];then
 		/usr/bin/tar "$@"
 	else
 		/bin/tar "$@"
 	fi
+  else
+	gnutar "$@"
+  fi
 else
 	gtar "$@"
 fi