OSDN Git Service

Fix mma/mmma by making gettop canonicalize TOP when set
authorBrian Carlstrom <bdc@google.com>
Fri, 12 Sep 2014 07:33:25 +0000 (00:33 -0700)
committerBrian Carlstrom <bdc@google.com>
Fri, 12 Sep 2014 07:33:25 +0000 (00:33 -0700)
Bug: 17253957
Change-Id: Ifd6d5984f63981e1f99b6ae6f9459c2801588459

envsetup.sh

index 2c74b2d..754ecfa 100644 (file)
@@ -629,7 +629,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