aboutsummaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
authorKevin Dagostino <kevindagostino@google.com>2024-01-11 17:39:02 +0000
committerKevin Dagostino <kevindagostino@google.com>2024-01-17 21:56:30 +0000
commit185109bdd69c587c1ff0ddd742bf2715d98d0e8f (patch)
treeed558fd6b8190c776d5a43d59b323b7ccacbe713 /envsetup.sh
parentc5b4b824ae281bdc26e8da41097bbf17efb8ba8c (diff)
downloadbuild-185109bdd69c587c1ff0ddd742bf2715d98d0e8f.tar.gz
Add banner announcing adevice when running builds.
Test: ANDROID_QUIET_BUILD=true mm Test: mm Change-Id: Ib1329d2f52f11d0ad437d0fb02000e4e7f104d55
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 5aa11c7bcb..e180cf1a35 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -254,7 +254,7 @@ function set_lunch_paths()
# Note: on windows/cygwin, ANDROID_LUNCH_BUILD_PATHS will contain spaces
# due to "C:\Program Files" being in the path.
- # Handle compat with the old ANDROID_BUILD_PATHS variable.
+ # Handle compat with the old ANDROID_BUILD_PATHS variable.
# TODO: Remove this after we think everyone has lunched again.
if [ -z "$ANDROID_LUNCH_BUILD_PATHS" -a -n "$ANDROID_BUILD_PATHS" ] ; then
ANDROID_LUNCH_BUILD_PATHS="$ANDROID_BUILD_PATHS"
@@ -1886,6 +1886,11 @@ function _trigger_build()
>&2 echo "Couldn't locate the top of the tree. Try setting TOP."
return 1
fi
+ local ret=$?
+ if [[ ret -eq 0 && -z "${ANDROID_QUIET_BUILD:-}" && -n "${ANDROID_BUILD_BANNER}" ]]; then
+ echo "${ANDROID_BUILD_BANNER}"
+ fi
+ return $ret
)
function m()