* commit '9ccadc8246c6c805265046ce02cb5e42c9cc2ee9': ggrep
This commit is contained in:
commit
0f2e5657d4
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
|
|||
- mma: Builds all of the modules in the current directory, and their dependencies.
|
||||
- mmma: Builds all of the modules in the supplied directories, and their dependencies.
|
||||
- cgrep: Greps on all local C/C++ files.
|
||||
- ggrep: Greps on all local Gradle files.
|
||||
- jgrep: Greps on all local Java files.
|
||||
- resgrep: Greps on all local res/*.xml files.
|
||||
- godir: Go to the directory containing a file.
|
||||
|
@ -1066,6 +1067,11 @@ function gettargetarch
|
|||
get_build_var TARGET_ARCH
|
||||
}
|
||||
|
||||
function ggrep()
|
||||
{
|
||||
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.gradle" -print0 | xargs -0 grep --color -n "$@"
|
||||
}
|
||||
|
||||
function jgrep()
|
||||
{
|
||||
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
|
||||
|
|
Loading…
Reference in a new issue