Fix mmm to work with an ANDROID_BUILD_TOP that contains a symlink

Change-Id: I3dfc1aa6f10a52c2adc68259ce1cedec2ffd8f0e
This commit is contained in:
Brian Carlstrom 2010-09-17 12:25:50 -07:00
parent bb2b82bd55
commit c634d2c19d
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ function mmm()
for DIR in $DIRS ; do
DIR=`echo $DIR | sed -e 's:/$::'`
if [ -f $DIR/Android.mk ]; then
TO_CHOP=`echo $T | wc -c | tr -d ' '`
TO_CHOP=`(cd -P -- $T && pwd -P) | wc -c | tr -d ' '`
TO_CHOP=`expr $TO_CHOP + 1`
START=`PWD= /bin/pwd`
MFILE=`echo $START | cut -c${TO_CHOP}-`