llvm.org GIT mirror llvm / 23a354d
Fix some thinkos in the script (error handling, proper argument handling). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14676 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 15 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/sh
11 # This is useful because it prints out all of the source files. Useful for
22 # greps.
3 PATTERN=$*
3 PATTERN="$*"
44 TOPDIR=`pwd | sed -e 's#(.*/llvm).*#$1#'`
55 if test -d "$TOPDIR" ; then
66 cd $TOPDIR
1717 \! -name 'llvmAsmParser.h' \
1818 \! -name 'FileParser.cpp' \
1919 \! -name 'FileParser.h' \
20 -exec egrep -H -n $PATTERN {} \;
20 -exec egrep -H -n "$PATTERN" {} \;
21 else
22 echo "Can't find LLVM top directory in $TOPDIR"
2123 fi