forked from openkylin/platform_build
Add "owngrep" shell utility.
Bug: 132612223 Test: manual Change-Id: Ibe27e419caaf4ebcbb5d48ab50cc71730c320e1c
This commit is contained in:
parent
e6012c8826
commit
f17cddfa5b
|
@ -23,6 +23,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
|
||||||
- resgrep: Greps on all local res/*.xml files.
|
- resgrep: Greps on all local res/*.xml files.
|
||||||
- mangrep: Greps on all local AndroidManifest.xml files.
|
- mangrep: Greps on all local AndroidManifest.xml files.
|
||||||
- mgrep: Greps on all local Makefiles and *.bp files.
|
- mgrep: Greps on all local Makefiles and *.bp files.
|
||||||
|
- owngrep: Greps on all local OWNERS files.
|
||||||
- sepgrep: Greps on all local sepolicy files.
|
- sepgrep: Greps on all local sepolicy files.
|
||||||
- sgrep: Greps on all local source files.
|
- sgrep: Greps on all local source files.
|
||||||
- godir: Go to the directory containing a file.
|
- godir: Go to the directory containing a file.
|
||||||
|
@ -995,6 +996,12 @@ function mangrep()
|
||||||
-exec grep --color -n "$@" {} +
|
-exec grep --color -n "$@" {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function owngrep()
|
||||||
|
{
|
||||||
|
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -name 'OWNERS' \
|
||||||
|
-exec grep --color -n "$@" {} +
|
||||||
|
}
|
||||||
|
|
||||||
function sepgrep()
|
function sepgrep()
|
||||||
{
|
{
|
||||||
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d \
|
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d \
|
||||||
|
|
Loading…
Reference in New Issue