mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
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
This commit is contained in:
parent
421991c381
commit
23a354d1f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user