OSDN Git Service
(root)
/
android-x86
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5b1e4e
)
Make cgrep look for *.c, *.cc, *.cpp, *.h exclusively.
author
Ficus Kirkpatrick
<ficus@android.com>
Tue, 2 Mar 2010 00:51:47 +0000
(16:51 -0800)
committer
Ficus Kirkpatrick
<ficus@android.com>
Tue, 2 Mar 2010 00:51:47 +0000
(16:51 -0800)
It was doing '*.c*' which both included .class files and omitted .h files.
Change-Id: Iedaac4f7ee86df86fdc38341c04ca565f34223b4
envsetup.sh
patch
|
blob
|
history
diff --git
a/envsetup.sh
b/envsetup.sh
index
a76deb9
..
1c114d0
100644
(file)
--- a/
envsetup.sh
+++ b/
envsetup.sh
@@
-771,7
+771,7
@@
function jgrep()
function cgrep()
{
- find . -type f
-name "*\.c*"
-print0 | xargs -0 grep --color -n "$@"
+ find . -type f
\( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \)
-print0 | xargs -0 grep --color -n "$@"
}
function resgrep()