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

Commit e9939fb5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "envsetup: Add pygrep function to grep all python files" am: c5f135a5...

Merge "envsetup: Add pygrep function to grep all python files" am: c5f135a5 am: 8e24d06a am: 113685f6

Original change: https://android-review.googlesource.com/c/platform/build/+/1512271



Change-Id: Ica9365e64b1a02c59056fa851cc9b94ff1829116
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b531957c 113685f6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
- rsgrep:     Greps on all local Rust files.
- sepgrep:    Greps on all local sepolicy files.
- sgrep:      Greps on all local source files.
- pygrep:     Greps on all local Python files.
- godir:      Go to the directory containing a file.
- allmod:     List all modules.
- gomod:      Go to the directory containing a module.
@@ -1226,6 +1227,12 @@ function rcgrep()
        -exec grep --color -n "$@" {} +
}

function pygrep()
{
    find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.py" \
        -exec grep --color -n "$@" {} +
}

case `uname -s` in
    Darwin)
        function mgrep()