scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit be6305dcaa080f3d2db97eb8f5c45a5d1a106a88
parent 23ebf6dcc912ea2b3c5543ec6e575d19ca0d5ac4
Author: clamiax <smoppy@gmail.com>
Date:   Thu, 29 Oct 2015 14:12:56 +0100

[droid] Don't fetch unneeded tarballs. Temp directory is now /tmp.

Diffstat:
Msrc/droid | 28++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/src/droid b/src/droid @@ -19,23 +19,19 @@ _adb() { } do_setup() { - tmpd="$BASEDIR/tmp" - if [ ! -d "$tmpd" ]; then - mkdir -p "$tmpd" - fi - cd "$tmpd" - - echo "Downloading..." - wget -O sdk.tgz -qc "$SDK_URL" - wget -O gradle.zip -qc "$GRADLE_URL" - - echo "Extracting..." - [ ! -d "$BASEDIR/android-sdk-linux" ] && tar zxf sdk.tgz -C "$BASEDIR" - [ ! -d "$BASEDIR/gradle-2.3" ] && unzip -qq gradle.zip -d "$BASEDIR" - - echo "Cleaning up..." - rm -f "$tmpd" + echo "Setting up the development environment..." + cd "/tmp" + if [ ! -d "$BASEDIR/android-sdk-linux" ]; then + echo "Setting up the SDK..." + wget -O sdk.tgz -qc "$SDK_URL" + tar zxf sdk.tgz -C "$BASEDIR" + fi + if [ ! -d "$BASEDIR/gradle-2.3" ]; then + echo "Setting up the Gradle build system..." + wget -O gradle.zip -qc "$GRADLE_URL" + unzip -qq gradle.zip -d "$BASEDIR" + fi cd "$OLDPWD" # Need to install the SDK tools, build tools and system image