[or-cvs] r8596: ARCH is universal for OSX 10.4 and beyond. Only ppc is avail (tor/branches/tor-0_1_1-patches/contrib/osx)

phobos at seul.org phobos at seul.org
Thu Oct 5 03:25:49 UTC 2006


Author: phobos
Date: 2006-10-04 23:25:48 -0400 (Wed, 04 Oct 2006)
New Revision: 8596

Modified:
   tor/branches/tor-0_1_1-patches/contrib/osx/package.sh
Log:
ARCH is universal for OSX 10.4 and beyond.  Only ppc is available for
10.3 and previous.  


Modified: tor/branches/tor-0_1_1-patches/contrib/osx/package.sh
===================================================================
--- tor/branches/tor-0_1_1-patches/contrib/osx/package.sh	2006-10-04 05:19:40 UTC (rev 8595)
+++ tor/branches/tor-0_1_1-patches/contrib/osx/package.sh	2006-10-05 03:25:48 UTC (rev 8596)
@@ -32,12 +32,6 @@
   exit 1
 fi
 
-if [ -x /usr/bin/arch ]; then
-  ARCH=`/usr/bin/arch`
-else
-  ARCH="unknown"
-fi
-
 ## Determine OSX Version
 # map version to name
 if [ -x /usr/bin/sw_vers ]; then
@@ -45,12 +39,12 @@
 # the OS version
   OSVER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
     case "$OSVER" in
-    	"10.5") OS="leopard";;
-	"10.4") OS="tiger";;
-	"10.3") OS="panther";;
-	"10.2") OS="jaguar";;
-	"10.1") OS="puma";;
-	"10.0") OS="cheetah";;
+    	"10.5") OS="leopard" ARCH="universal";;
+	"10.4") OS="tiger" ARCH="universal";;
+	"10.3") OS="panther" ARCH="ppc";;
+	"10.2") OS="jaguar" ARCH="ppc";;
+	"10.1") OS="puma" ARCH="ppc";;
+	"10.0") OS="cheetah" ARCH="ppc";;
 	*) OS="unknown";;
     esac
 else



More information about the tor-commits mailing list