From 301bbadb12a6ad5df8baa1aaa7a11adb6329b7d9 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 8 Mar 2013 10:20:47 -0800 Subject: [PATCH] Function to grep AndroidManifest.xml files. (cherry picked from commit 50b61e9e66bad2f8addc425271b41e74babf3a34) Change-Id: I1998a9d6a05176fc7fc8643c5d1c40e2dd699d4e --- envsetup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index a8e7a1347..b4bfaa9b0 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -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; } +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 Darwin) function mgrep()