am ea83daa3: Merge "Fix mmm to work with an ANDROID_BUILD_TOP that contains a symlink" into gingerbread

Merge commit 'ea83daa389aea493294617232b5c34414861d701' into gingerbread-plus-aosp

* commit 'ea83daa389aea493294617232b5c34414861d701':
  Fix mmm to work with an ANDROID_BUILD_TOP that contains a symlink
This commit is contained in:
Brian Carlstrom 2010-09-28 17:50:49 -07:00 committed by Android Git Automerger
commit 73143d9dfc
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,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}-`