projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
421991c
)
Fix some thinkos in the script (error handling, proper argument handling).
author
Reid Spencer
<rspencer@reidspencer.com>
Wed, 7 Jul 2004 21:19:01 +0000
(21:19 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Wed, 7 Jul 2004 21:19:01 +0000
(21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14676
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/llvmgrep
patch
|
blob
|
history
diff --git
a/utils/llvmgrep
b/utils/llvmgrep
index 89027e301ab023fc8bf93085a7fd91b6ad29792c..5ed48f19d527711a0189a6e27f517de620c3caeb 100755
(executable)
--- a/
utils/llvmgrep
+++ b/
utils/llvmgrep
@@
-1,7
+1,7
@@
#!/bin/sh
# This is useful because it prints out all of the source files. Useful for
# greps.
-PATTERN=
$*
+PATTERN=
"$*"
TOPDIR=`pwd | sed -e 's#(.*/llvm).*#$1#'`
if test -d "$TOPDIR" ; then
cd $TOPDIR
@@
-18,5
+18,7
@@
if test -d "$TOPDIR" ; then
\! -name 'llvmAsmParser.h' \
\! -name 'FileParser.cpp' \
\! -name 'FileParser.h' \
- -exec egrep -H -n $PATTERN {} \;
+ -exec egrep -H -n "$PATTERN" {} \;
+else
+ echo "Can't find LLVM top directory in $TOPDIR"
fi