Created
January 28, 2012 20:43
-
-
Save vertexclique/1695701 to your computer and use it in GitHub Desktop.
Android NDK getter for terminalism
This file contains 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 | |
cd ~ | |
os=`uname` | |
dir="./android-ndk-r7/" | |
if [ -d $dir ]; then | |
cd ~/terminalism/ | |
~/android-ndk-r7/ndk-build | |
else | |
if [ $os = Darwin]; then | |
curl -C - -O http://dl.google.com/android/ndk/android-ndk-r7-darwin-x86.tar.bz2 | |
tar -xvjf android-ndk-r7-darwin-x86.tar.bz2 | |
cd ~/terminalism/ | |
~/android-ndk-r7/ndk-build | |
fi | |
if [ $os = Linux]; then | |
curl -C - -O http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2 | |
tar -xvjf android-ndk-r7-linux-x86.tar.bz2 | |
cd ~/terminalism/ | |
~/android-ndk-r7/ndk-build * | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment