From 79056db4e082e8d42e94257f5e2d7eaa493f7c97 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Thu, 20 Oct 2016 14:26:45 -0700 Subject: [PATCH] Support Android.bp in mgrep This patch enabled Android.bp in mgrep result Bug: 32313127 Test: mgrep Change-Id: Ie3171a10ab54322bfc3844d1f629c783286ec212 --- envsetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index e9198919e..710b28f0d 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -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 "$@" {} + }