[llvm-commits] fix egrep options for Darwin in utils/llvmgrep
Liang Wang
netcasper at gmail.com
Tue Jan 24 18:01:57 PST 2012
Hi,
Currently, llvmgrep shows only filename since it uses -l as egrep
option on Darwin. It should use -H as for Linux.
The following patch fixes the problem. OK for trunk?
Thanks,
Liang.
Index: utils/llvmgrep
===================================================================
--- utils/llvmgrep (revision 148897)
+++ utils/llvmgrep (working copy)
@@ -29,7 +29,7 @@
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" \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: egrep-options-for-darwin.patch
Type: application/octet-stream
Size: 416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120125/c73c858c/attachment.obj>
More information about the llvm-commits
mailing list