From: Eric Christopher Date: Thu, 26 Jan 2012 22:06:23 +0000 (+0000) Subject: Use -H on darwin as well. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f26475af976389839c4affdcd2b5ef07ba548a81;p=oota-llvm.git Use -H on darwin as well. Patch by Liang Wang! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/llvmgrep b/utils/llvmgrep index 540f0598579..dc15da4961e 100755 --- a/utils/llvmgrep +++ b/utils/llvmgrep @@ -29,7 +29,7 @@ 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" \