X-Git-Url: https://git.ao2.it/android/android-app-development-getting-started.git/blobdiff_plain/b9c60624b1049409f0a000b6375fe3f65803ff74..ff5b053020d4849124fb52d706c00f3b875ab49e:/setenv?ds=sidebyside diff --git a/setenv b/setenv index 5b85830..004eee1 100644 --- a/setenv +++ b/setenv @@ -1,4 +1,8 @@ #!/bin/sh -# This file is meant to be sourced, not executed. -export ANDROID_HOME=$HOME/Android/android-sdk-linux + +[ "${0#-}" = "$(basename $SHELL)" ] || { echo "This script is meant to be sourced, not executed" 1>&2; exit 1; } + +ANDROID_BASE_DIR=$HOME/Android + +export ANDROID_HOME=$ANDROID_BASE_DIR/android-sdk-linux export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools