From 5ef878ac38bd1592d1e4e32d9843c37f8f277a9a Mon Sep 17 00:00:00 2001 From: Benno Leslie Date: Fri, 27 Feb 2009 21:04:08 +1100 Subject: [PATCH] Updated the sgrep tool so that is will treat Makefiles (.mk) and shell scripts (.sh) as 'source' files. --- envsetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index e20d68413d..17f958505f 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -747,14 +747,14 @@ case `uname -s` in Darwin) function sgrep() { - find -E . -type f -iregex '.*\.(c|h|cpp|S|java|xml)' -print0 | xargs -0 grep --color -n "$@" + find -E . -type f -iregex '.*\.(c|h|cpp|S|java|xml|sh|mk)' -print0 | xargs -0 grep --color -n "$@" } ;; *) function sgrep() { - find . -type f -iregex '.*\.\(c\|h\|cpp\|S\|java\|xml\)' -print0 | xargs -0 grep --color -n "$@" + find . -type f -iregex '.*\.\(c\|h\|cpp\|S\|java\|xml\|sh\|mk\)' -print0 | xargs -0 grep --color -n "$@" } ;; esac