am d879a53c: am b361a17f: am 3dd8a300: am dbc9eacb: Merge "Make jgrep, cgrep, resgrep not recurse into \'out\' directory."

* commit 'd879a53c9d5078be9ddaa474d1778da420d249c0':
  Make jgrep, cgrep, resgrep not recurse into 'out' directory.
This commit is contained in:
Ying Wang 2014-01-22 20:42:56 +00:00 committed by Android Git Automerger
commit 24807121aa
1 changed files with 3 additions and 3 deletions

View File

@ -1017,17 +1017,17 @@ function gettargetarch
function jgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
}
function cgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
function resgrep()
{
for dir in `find . -name .repo -prune -o -name .git -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done;
for dir in `find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done;
}
function mangrep()