diff options
author | Marco Nelissen <marcone@google.com> | 2011-07-20 14:48:43 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2011-07-20 14:48:43 -0700 |
commit | 7d421c5b02943db80dee6103dbe40e6caa4fcfd0 (patch) | |
tree | dcb703dab02692b93431f056e953c207e1cdba59 | |
parent | 345110054ec6f79b1383757b7028ca519805ad61 (diff) | |
download | android_development-7d421c5b02943db80dee6103dbe40e6caa4fcfd0.tar.gz android_development-7d421c5b02943db80dee6103dbe40e6caa4fcfd0.tar.bz2 android_development-7d421c5b02943db80dee6103dbe40e6caa4fcfd0.zip |
Update findunusedresources to know about integers and mipmaps
Change-Id: I10846ae4f876a325ce53e2c1522af2094493beba
-rwxr-xr-x | tools/findunused/findunusedresources | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/findunused/findunusedresources b/tools/findunused/findunusedresources index 073763edf..84c0f8259 100755 --- a/tools/findunused/findunusedresources +++ b/tools/findunused/findunusedresources @@ -67,7 +67,7 @@ do # refer to such constants from java by using an underscore instead of a period, we also # replace all underscores with a pattern that will match periods and underscores. p=$(echo $i | sed 's/_/[\\._]/g') - echo $i $(grep -cw R\\..*\\.$i\\\|@style/$p\\\|@drawable/$p\\\|@anim/$p\\\|@color/$p\\\|@xml/$p\\\|@layout/$p\\\|@menu/$p\\\|@+id/$p\\\|@array/$p\\\|@string/$p\\\|@dimen/$p\\\|\[a-z\]\*:$p\\\|enumname=\"$p\\\|\<item\>$p\< < /tmp/everything$$) + echo $i $(grep -cw R\\..*\\.$i\\\|@style/$p\\\|@drawable/$p\\\|@anim/$p\\\|@color/$p\\\|@xml/$p\\\|@layout/$p\\\|@menu/$p\\\|@+id/$p\\\|@array/$p\\\|@string/$p\\\|@mipmap/$p\\\|@integer/$p\\\|@dimen/$p\\\|\[a-z\]\*:$p\\\|enumname=\"$p\\\|\<item\>$p\< < /tmp/everything$$) done | grep " 0$" | { # this block gets as its input a list of constants for which no references were found, one per line if [ "$showall" == "yes" ] |