Last active
December 22, 2015 00:19
-
-
Save 2bbb/ad7541d620d4b8bf6178 to your computer and use it in GitHub Desktop.
osx_sdk_setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # MacOSX-SDKs: download from https://github.com/phracker/MacOSX-SDKs | |
| FROM=5 | |
| TO=10 | |
| CMD="/usr/bin/sudo /bin/ln -s" | |
| MY_PATH=`pwd` | |
| MY_PATH=$MY_PATH/MacOSX-SDKs/ | |
| PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs | |
| SDK_LIST="" | |
| for (( i = $FROM; i <= $TO; i++ )); do | |
| SDK_LIST="$DEST_LIST $PATH/MacOSX10.$i.sdk" | |
| done | |
| cd $PATH | |
| $CMD $SDK_LIST . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment