[xiph-commits] r2977 - liboggplay/trunk/plugin/mac

tahn at svn.annodex.net tahn at svn.annodex.net
Sun Jun 17 23:04:53 PDT 2007


Author: tahn
Date: 2007-06-17 23:04:53 -0700 (Sun, 17 Jun 2007)
New Revision: 2977

Modified:
   liboggplay/trunk/plugin/mac/mac-annodex-dev-install
Log:
The script will now download an Intel version of gecko-sdk, based on the machine's CPU type.


Modified: liboggplay/trunk/plugin/mac/mac-annodex-dev-install
===================================================================
--- liboggplay/trunk/plugin/mac/mac-annodex-dev-install	2007-06-18 03:56:15 UTC (rev 2976)
+++ liboggplay/trunk/plugin/mac/mac-annodex-dev-install	2007-06-18 06:04:53 UTC (rev 2977)
@@ -86,13 +86,31 @@
 
 if [ ! -e /Developer/gecko-sdk ]; then
   echo -e "\n---- Installing gecko-sdk ----"
-  curl -f -O http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.4/sdk/gecko-sdk-mac-1.8.0.4.zip
-  unzip gecko-sdk-mac-1.8.0.4.zip -d /Developer
-  rm gecko-sdk-mac-1.8.0.4.zip
-  if [ ! -e /Developer/gecko-sdk ]; then
-    echo -e "\n*** Installation failed ***"
+  CPU=$(system_profiler SPHardwareDataType | awk '/CPU Type/{print $3}')
+  if [ "$CPU" = "PowerPC" ]; then
+    echo "Downloading gecko-sdk for PowerPC Mac"
+    GSPATH=http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.4/sdk
+    GSFILE=gecko-sdk-mac-1.8.0.4.zip
+    GSDEST=/Developer
+  elif [ "$CPU" = "Intel" ]; then
+    echo "Downloading gecko-sdk for Intel Mac"
+    mkdir /Developer/gecko-sdk
+    GSPATH=http://www.oxymoronical.com/site/files
+    GSFILE=gecko-sdk-mac-intel-1.8.1.3.zip
+    GSDEST=/Developer/gecko-sdk
+  else
+    echo -e "\n*** Could not determine CPU type ***"
     exit
   fi
+  if ! curl -f -O $GSPATH/$GSFILE; then
+    echo -e "\n*** Download failed ***"
+    exit
+  fi
+  if ! unzip $GSFILE -d $GSDEST; then
+    echo -e "\n*** unzip failed ***"
+    exit
+  fi
+  rm $GSFILE
 fi
 
 echo -e "\n---- Checking out libraries ----"



More information about the commits mailing list