-
-
Save michaelneale/886f47825fc5e5a36ef0 to your computer and use it in GitHub Desktop.
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/sh | |
if [ ! -d /opt/android/android-sdk-linux/tools/proguard ] | |
then | |
echo "Downloading SDK directory for Proguard" | |
curl -O http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz | |
tar -zxvf android-sdk_r22.6.2-linux.tgz | |
echo "Copying proguard directory..." | |
cp -r android-sdk-linux/tools/proguard /opt/android/android-sdk-linux/tools | |
fi | |
if [ ! -f /opt/android/android-sdk-linux/tools/zipalign ] | |
then | |
if [ ! -f android-sdk_r22.6.2-linux.tgz ] | |
then | |
echo "Downloading SDK directory for zipalign" | |
curl -O http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz | |
tar -zxvf android-sdk_r22.6.2-linux.tgz | |
fi | |
echo "Copying zipalign file..." | |
if [ -h /opt/android/android-sdk-linux/tools/zipalign ] | |
then | |
rm -rf /opt/android/android-sdk-linux/tools/zipalign | |
fi | |
cp android-sdk-linux/tools/zipalign /opt/android/android-sdk-linux/tools | |
fi | |
if [ -d android-sdk-linux ] | |
then | |
echo "Removing downloaded SDK directory and TGZ" | |
rm -rf android-sdk-linux | |
rm -f android-sdk_r22.6.2-linux.tgz | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment