Merge "Support Android.bp in mgrep"

am: 1ee0fa0d35

Change-Id: I745a44a41afa173f5320d1bc85a51f6573a0e2fb
This commit is contained in:
Wei Wang 2016-10-20 23:51:19 +00:00 committed by android-build-merger
commit 6528395f06
1 changed files with 2 additions and 2 deletions

View File

@ -1234,7 +1234,7 @@ case `uname -s` in
Darwin)
function mgrep()
{
find -E . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -iregex '.*/(Makefile|Makefile\..*|.*\.make|.*\.mak|.*\.mk)' \
find -E . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -iregex '.*/(Makefile|Makefile\..*|.*\.make|.*\.mak|.*\.mk|.*\.bp)' \
-exec grep --color -n "$@" {} +
}
@ -1248,7 +1248,7 @@ case `uname -s` in
*)
function mgrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -type f \
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk|.*\.bp)' -type f \
-exec grep --color -n "$@" {} +
}