summary history branches tags files
commit:4773f326a57308d5e6fbc7833c1b5cea1dbcd3f9
author:mrmekon
committer:mrmekon
date:Fri Nov 11 20:11:00 2011 -0500
parents:f0e1763fd4de6ef75cfd7ca8ed46662eceacfa92
iOS script downloads ios-static libraries
diff --git a/build_ios.sh b/build_ios.sh
line changes: +16/-0
index cd7d446..d48324d
--- a/build_ios.sh
+++ b/build_ios.sh
@@ -1,5 +1,21 @@
 #!/bin/sh
 
+IOS_LIB_URL="http://ios-static-libraries.googlecode.com/files/ios-libraries-2011-03-10-065803.zip"
+IOS_LIB_FILE="ios-libraries-2011-03-10-065803.zip"
+
+if [ ! -d "Binaries" ]; then
+    wget ${IOS_LIB_URL} > /dev/null
+    if [ ! -e ${IOS_LIB_FILE} ]; then
+	echo "FAILED TO DOWNLOAD IOS LIBRARIES.  CANNOT CONTINUE."
+	exit 1
+    fi
+    unzip ${IOS_LIB_FILE} > /dev/null
+    if [ $? -ne 0 ]; then
+	echo "Unzip failed.  CANNOT CONTINUE."
+	exit 1
+    fi
+fi
+
 echo "Building iOS library..."
 xcodebuild -project simplepgp.xcodeproj -alltargets > /dev/null
 echo "Building iOS simulator library..."