forked from openkylin/platform_build
Merge "Teach mgrep to find soong/*.go files." am: 46d9bf8f9a
am: bb67e3ae54
am: f515b91b3f
am: d5b0f9abe6
Change-Id: I1ea056d5997e31791153aafd149412a5e75953ce
This commit is contained in:
commit
832b31512b
|
@ -1253,7 +1253,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|.*\.bp)' \
|
||||
find -E . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o \( -iregex '.*/(Makefile|Makefile\..*|.*\.make|.*\.mak|.*\.mk|.*\.bp)' -o -regex '(.*/)?soong/[^/]*.go' \) -type f \
|
||||
-exec grep --color -n "$@" {} +
|
||||
}
|
||||
|
||||
|
@ -1267,7 +1267,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|.*\.bp)' -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)' -o -regextype posix-extended -regex '(.*/)?soong/[^/]*.go' \) -type f \
|
||||
-exec grep --color -n "$@" {} +
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue