Function to grep AndroidManifest.xml files.

(cherry picked from commit 50b61e9e66)

Change-Id: I1998a9d6a05176fc7fc8643c5d1c40e2dd699d4e
This commit is contained in:
Jeff Sharkey 2013-03-08 10:20:47 -08:00 committed by Kenny Root
parent cfe0969ab9
commit 301bbadb12
1 changed files with 5 additions and 0 deletions

View File

@ -872,6 +872,11 @@ function resgrep()
for dir in `find . -name .repo -prune -o -name .git -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done; for dir in `find . -name .repo -prune -o -name .git -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done;
} }
function mangrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -name 'AndroidManifest.xml' -print0 | xargs -0 grep --color -n "$@"
}
case `uname -s` in case `uname -s` in
Darwin) Darwin)
function mgrep() function mgrep()