aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHashBang <hashbang173@gmail.com>2016-01-17 10:42:41 -0500
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-17 12:53:19 -0800
commit0e7f31765f15104686707b9d6cc63cd6568962fb (patch)
tree93f824ca43f3184c0fbaa8ab2942c5c8f27d6a04
parent58d16c1db9650e0da6f7c6ec5cc6fe8cc944f1ab (diff)
downloadandroid_external_gello_build-0e7f31765f15104686707b9d6cc63cd6568962fb.tar.gz
android_external_gello_build-0e7f31765f15104686707b9d6cc63cd6568962fb.tar.bz2
android_external_gello_build-0e7f31765f15104686707b9d6cc63cd6568962fb.zip
gello_build: update PATH for depot tools before clean/sync
cleaning requires gclient Change-Id: I69c09cd61c3bf413e54bfccab669f962eacb5a49
-rwxr-xr-xgello_build.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/gello_build.sh b/gello_build.sh
index 82922b6..edbffe1 100755
--- a/gello_build.sh
+++ b/gello_build.sh
@@ -39,6 +39,12 @@ CLEAN=false
# Sync
#
function sync() {
+ # If we have previously downloaded depot tools using this script
+ # export its path for us
+ if [ -d "$TOP_GELLO/depot/depot_tools" ]; then
+ export PATH=$PATH:$TOP_GELLO/depot/depot_tools
+ fi
+
if [ "$CLEAN" == true ]; then
cd $TOP_GELLO/env
@@ -54,12 +60,6 @@ function sync() {
if [ "$NOSYNC" != true ]; then
cd $TOP_GELLO/env
- # If we have previously downloaded depot tools using this script
- # export its path for us
- if [ -d "$TOP_GELLO/depot/depot_tools" ]; then
- export PATH=$PATH:$TOP_GELLO/depot/depot_tools
- fi
-
echo "Syncing now!"
gclient sync -n --no-nag-max
local SYNCRET=$?
@@ -202,7 +202,6 @@ function getdepot() {
##
# Main
#
-
if [ "$1" == "--depot" ]; then
getdepot && exit 0
elif [ "$1" == "--help" ]; then