1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Fix some thinkos in the script (error handling, proper argument handling).

llvm-svn: 14676
This commit is contained in:
Reid Spencer 2004-07-07 21:19:01 +00:00
parent 901e5d7a55
commit a97870c0ff

View File

@ -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