projects
/
android
/
android-app-development-getting-started.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a variable to set the base directory for Android development
[android/android-app-development-getting-started.git]
/
setenv
diff --git
a/setenv
b/setenv
index
b9a1569
..
004eee1
100644
(file)
--- a/
setenv
+++ b/
setenv
@@
-2,5
+2,7
@@
[ "${0#-}" = "$(basename $SHELL)" ] || { echo "This script is meant to be sourced, not executed" 1>&2; exit 1; }
[ "${0#-}" = "$(basename $SHELL)" ] || { echo "This script is meant to be sourced, not executed" 1>&2; exit 1; }
-export ANDROID_HOME=$HOME/Android/android-sdk-linux
+ANDROID_BASE_DIR=$HOME/Android
+
+export ANDROID_HOME=$ANDROID_BASE_DIR/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools