Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b361a17f authored by Ying Wang's avatar Ying Wang Committed by Android Git Automerger
Browse files

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

* commit '3dd8a300':
  Make jgrep, cgrep, resgrep not recurse into 'out' directory.
parents 6d5b83d8 3dd8a300
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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()