forked from openkylin/platform_build
Include .proto in sgrep()
Test: use in frameworks/base Change-Id: I8104822cf69b09b3d11edb9261b8ab43029549d7
This commit is contained in:
parent
90d4027542
commit
e2fe95903b
|
@ -954,7 +954,7 @@ case `uname -s` in
|
|||
Darwin)
|
||||
function sgrep()
|
||||
{
|
||||
find -E . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.(c|h|cc|cpp|hpp|S|java|xml|sh|mk|aidl|vts)' \
|
||||
find -E . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.(c|h|cc|cpp|hpp|S|java|xml|sh|mk|aidl|vts|proto)' \
|
||||
-exec grep --color -n "$@" {} +
|
||||
}
|
||||
|
||||
|
@ -962,7 +962,7 @@ case `uname -s` in
|
|||
*)
|
||||
function sgrep()
|
||||
{
|
||||
find . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.\(c\|h\|cc\|cpp\|hpp\|S\|java\|xml\|sh\|mk\|aidl\|vts\)' \
|
||||
find . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.\(c\|h\|cc\|cpp\|hpp\|S\|java\|xml\|sh\|mk\|aidl\|vts\|proto\)' \
|
||||
-exec grep --color -n "$@" {} +
|
||||
}
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue