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
(parent:
37a14b1
)
sepgrep -- function to grep SELinux policy files.
author
Alex Klyubin
<klyubin@google.com>
Mon, 6 May 2013 21:11:48 +0000
(14:11 -0700)
committer
Alex Klyubin
<klyubin@google.com>
Wed, 8 May 2013 20:43:22 +0000
(13:43 -0700)
(cherry picked from commit
ba5fc8e59397ff2d986681457ed590742ce522e8
)
Change-Id: I7840dc698c5e479e65c66cb2a3ab0405127b64ec
envsetup.sh
patch
|
blob
|
history
diff --git
a/envsetup.sh
b/envsetup.sh
index
ae2ff93
..
2de2375
100644
(file)
--- a/
envsetup.sh
+++ b/
envsetup.sh
@@
-945,6
+945,11
@@
function mangrep()
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -name 'AndroidManifest.xml' -print0 | xargs -0 grep --color -n "$@"
}
+function sepgrep()
+{
+ find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d -print0 | xargs -0 grep --color -n -r --exclude-dir=\.git "$@"
+}
+
case `uname -s` in
Darwin)
function mgrep()