llvm-6502/utils/llvmgrep

11 lines
332 B
Plaintext
Raw Normal View History

#!/bin/sh
# This is useful because it prints out all of the source files. Useful for
# greps.
TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
if test -d "$TOPDIR" ; then
cd $TOPDIR
./utils/llvmdo -dirs "include lib tools utils docs examples test projects" egrep -H -n "$*"
else
echo "Can't find LLVM top directory in $TOPDIR"
fi