From 6b0277d59bd04956e3f9c0db5717058e65c26a29 Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Wed, 24 Jun 2009 09:02:06 -0700 Subject: [PATCH] Tweak to findunusedresources so you can run it as "findunusedresources ." from within an application folder. --- tools/findunused/findunusedresources | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/findunused/findunusedresources b/tools/findunused/findunusedresources index 748139a7..00397334 100755 --- a/tools/findunused/findunusedresources +++ b/tools/findunused/findunusedresources @@ -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. -- 2.11.0