From 332b65039b5d8526b6fc91aaae2df0e9baec1507 Mon Sep 17 00:00:00 2001 From: jrizzoli Date: Fri, 15 Jan 2016 15:43:08 +0100 Subject: gello-build: unbreak first-time usage Change-Id: Idaf36282df4445f028a286fd6bf4b315a474865f Signed-off-by: jrizzoli --- gello_build.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/gello_build.sh b/gello_build.sh index fdb17bd..856d769 100755 --- a/gello_build.sh +++ b/gello_build.sh @@ -66,6 +66,10 @@ function setup() { cd $SRC_GELLO + if [ ! -f $DONE_FILE ]; then + touch $DONE_FILE + fi + . build/android/envsetup.sh if [ "$FAST" != true ] && [ -f $DONE_FILE ]; then @@ -76,10 +80,6 @@ function setup() { return 0 fi - if [ ! -f $DONE_FILE ]; then - touch $DONE_FILE - fi - # If we don't have Google SDKs, get them # !! This asks a manual input to accept licenses !! if [ ! -d $GOOGLE_SDK ]; then @@ -99,6 +99,15 @@ function compile() { cd $SRC_GELLO + # Gello "shell" builds only if we have WITH_GELLO_SOURCE == true , + # this script is running, so it should already be true + # if we're just doing tests we may have not that as true, set it + # otherwise it won't hurt + + if [ "$WITH_GELLO_SOURCE" != true ]; then + WITH_GELLO_SOURCE=true + fi + # Make things ninja -C out/Release swe_android_browser_apk -- cgit v1.2.3