]> git.saurik.com Git - cycript.git/commitdiff
Add plt abstraction for ios.sh.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 23 May 2011 09:07:33 +0000 (09:07 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 23 May 2011 09:07:33 +0000 (09:07 +0000)
ios.sh

diff --git a/ios.sh b/ios.sh
index 0bcbd49529cf4ef65dce22edbec01a8a55ddd457..66d611f08502a6d37f7bee7c287d2e61a4e3b970 100755 (executable)
--- a/ios.sh
+++ b/ios.sh
@@ -15,8 +15,9 @@ done
 mkdir -p sysroot.ios/usr/include/ffi
 mv -v sysroot.ios/usr/include/{,ffi/}ffi.h
 
-dev=/Developer/Platforms/iPhoneOS.platform/Developer
-sdk=${dev}/SDKs/iPhoneOS4.3.sdk
+plt=iPhoneOS
+dev=/Developer/Platforms/$plt.platform/Developer
+sdk=${dev}/SDKs/$plt4.3.sdk
 
 ln -s /System/Library/Frameworks/WebKit.framework/Versions/A/Headers sysroot.ios/usr/include/WebKit