X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Fllvmgrep;h=dc15da4961efcad5cd8c668056af99f1c7099ccd;hb=e0621f8f695aa0e092ab3f183251239683977a88;hp=7d7355ba9904b52cfca9edc9ab77771771556018;hpb=3060910e290949a9ac5eda8726d030790c4d60ff;p=oota-llvm.git diff --git a/utils/llvmgrep b/utils/llvmgrep index 7d7355ba990..dc15da4961e 100755 --- a/utils/llvmgrep +++ b/utils/llvmgrep @@ -29,11 +29,11 @@ if test -d "$TOPDIR" ; then cd $TOPDIR case `uname -s` in SunOS) grep_cmd="ggrep -H -n" ;; - Linux) grep_cmd="egrep -H -n" ;; + Linux|Darwin) grep_cmd="egrep -H -n" ;; *) grep_cmd="egrep -l -n" ;; esac ./utils/llvmdo -topdir "$TOPDIR" \ - -dirs "include lib tools utils docs examples test projects" $grep_cmd "$*" + -dirs "include lib tools utils docs examples test unittests projects cmake" $grep_cmd "$*" else echo "Can't find LLVM top directory" fi