From 0ff3aba580eee692703fa0e204707386c114011f Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Fri, 12 Sep 2014 00:33:25 -0700 Subject: [PATCH] Fix mma/mmma by making gettop canonicalize TOP when set Bug: 17253957 (cherry picked from commit a5c4f178ae3f3e94b1d1dceae3cc8d3196633c4a) Change-Id: Id5f5a6e9c81d4332ef5a846423ea41384a053db6 --- envsetup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index 2bba6262b..aa203800e 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -606,7 +606,8 @@ function gettop { local TOPFILE=build/core/envsetup.mk if [ -n "$TOP" -a -f "$TOP/$TOPFILE" ] ; then - echo $TOP + # The following circumlocution ensures we remove symlinks from TOP. + (cd $TOP; PWD= /bin/pwd) else if [ -f $TOPFILE ] ; then # The following circumlocution (repeated below as well) ensures