Merge change 5210
* changes: Tweak to findunusedresources so you can run it as "findunusedresources ." from within an application folder.
This commit is contained in:
@@ -26,6 +26,10 @@ fi
|
|||||||
for app in $apps
|
for app in $apps
|
||||||
do
|
do
|
||||||
echo '-----------------------------------------------------------'
|
echo '-----------------------------------------------------------'
|
||||||
|
if [ "$app" == "." ]
|
||||||
|
then
|
||||||
|
app=$(pwd)
|
||||||
|
fi
|
||||||
if [ -d $app/res ]
|
if [ -d $app/res ]
|
||||||
then
|
then
|
||||||
appname=$(basename $app)
|
appname=$(basename $app)
|
||||||
@@ -45,7 +49,7 @@ do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# find the R.java file that contains all the generated resource identifiers
|
# 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,
|
# Simplistically process the content of the file to get the names of all the constants,
|
||||||
# and try to find a reference to each constant.
|
# and try to find a reference to each constant.
|
||||||
|
|||||||
Reference in New Issue
Block a user