Skip the top out directory in mgrep.
Change-Id: I0530b24179034f521dc2366588cdc906ef466750
This commit is contained in:
parent
5ad1d7ec00
commit
324c2b2073
|
@ -835,7 +835,7 @@ case `uname -s` in
|
|||
Darwin)
|
||||
function mgrep()
|
||||
{
|
||||
find -E . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*/(Makefile|Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -print0 | xargs -0 grep --color -n "$@"
|
||||
find -E . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -iregex '.*/(Makefile|Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -print0 | xargs -0 grep --color -n "$@"
|
||||
}
|
||||
|
||||
function treegrep()
|
||||
|
@ -847,7 +847,7 @@ case `uname -s` in
|
|||
*)
|
||||
function mgrep()
|
||||
{
|
||||
find . -name .repo -prune -o -name .git -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -type f -print0 | xargs -0 grep --color -n "$@"
|
||||
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -type f -print0 | xargs -0 grep --color -n "$@"
|
||||
}
|
||||
|
||||
function treegrep()
|
||||
|
|
Loading…
Reference in New Issue