summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorJon Boekenoogen <jboekeno@google.com>2014-04-09 14:03:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-09 14:03:35 +0000
commit0f2e5657d4818806a6ffc6be4069d9978b22f1e2 (patch)
treebbc4b166ff774f7aeb61b911377f8a4ff8e0e326 /envsetup.sh
parent8af7e8ed3ecdfdf06d251c37c0cedfe340ffe18a (diff)
parent9ccadc8246c6c805265046ce02cb5e42c9cc2ee9 (diff)
downloadbuild-0f2e5657d4818806a6ffc6be4069d9978b22f1e2.zip
build-0f2e5657d4818806a6ffc6be4069d9978b22f1e2.tar.gz
build-0f2e5657d4818806a6ffc6be4069d9978b22f1e2.tar.bz2
am 9ccadc82: am a8245d1d: Merge "ggrep" into klp-ub-dev
* commit '9ccadc8246c6c805265046ce02cb5e42c9cc2ee9': ggrep
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 5ed3dc1..5d750da 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -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 "$@"