From 11b15b15ce69b2d0b88080888865ed9f590a18fd Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Thu, 11 Oct 2012 15:05:07 -0700 Subject: [PATCH] Resovle symlink in findmakefiles in envsetup.sh So the returned path can match the one returned by gettop, and so we can get the correct relative path of ONE_SHOT_MAKEFILE when running mm. Change-Id: I492d68fec47e59ec9f4ea0fb5139b1a28af0f6cd --- envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index 3694755c4..c758fccb5 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -616,7 +616,7 @@ function findmakefile() local HERE=$PWD T= while [ \( ! \( -f $TOPFILE \) \) -a \( $PWD != "/" \) ]; do - T=$PWD + T=`PWD= /bin/pwd` if [ -f "$T/Android.mk" ]; then echo $T/Android.mk cd $HERE > /dev/null -- 2.11.0