2004-06-20 04:32:55 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# This is useful because it prints out all of the source files. Useful for
|
|
|
|
# greps.
|
2004-09-20 15:22:23 +08:00
|
|
|
TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
|
2004-06-20 04:32:55 +08:00
|
|
|
if test -d "$TOPDIR" ; then
|
|
|
|
cd $TOPDIR
|
2004-09-20 15:22:23 +08:00
|
|
|
./utils/llvmdo -dirs "include lib tools utils docs examples test projects" egrep -H -n "$*"
|
2004-07-08 05:19:01 +08:00
|
|
|
else
|
|
|
|
echo "Can't find LLVM top directory in $TOPDIR"
|
2004-06-20 04:32:55 +08:00
|
|
|
fi
|