Merge change 5210

* changes:
  Tweak to findunusedresources so you can run it as "findunusedresources ." from within an application folder.
This commit is contained in:
Android (Google) Code Review
2009-06-24 14:36:39 -07:00

View File

@@ -26,6 +26,10 @@ fi
for app in $apps
do
echo '-----------------------------------------------------------'
if [ "$app" == "." ]
then
app=$(pwd)
fi
if [ -d $app/res ]
then
appname=$(basename $app)
@@ -45,7 +49,7 @@ do
fi
# find the R.java file that contains all the generated resource identifiers
rDotJava=$(find out/target/common/obj/APPS/${appname}_intermediates/ -name R.java)
rDotJava=$(find $ANDROID_BUILD_TOP/out/target/common/obj/APPS/${appname}_intermediates/ -name R.java)
# Simplistically process the content of the file to get the names of all the constants,
# and try to find a reference to each constant.