blob: 89027e301ab023fc8bf93085a7fd91b6ad29792c [file] [log] [blame]
Reid Spencer2d672082004-06-19 20:32:55 +00001#!/bin/sh
2# This is useful because it prints out all of the source files. Useful for
3# greps.
4PATTERN=$*
5TOPDIR=`pwd | sed -e 's#(.*/llvm).*#$1#'`
6if test -d "$TOPDIR" ; then
7 cd $TOPDIR
8 find docs include lib tools utils projects -type f \
9 \( -path '*/doxygen/*' -o -path '*/Burg/*' \) -prune -o \
10 -name '*.[cdhyl]*' \
11 \! -name '*~' \
12 \! -name '#*' \
13 \! -name '*.ll' \
14 \! -name '*.d' \
15 \! -name '*.dir' \
16 \! -name 'Sparc.burm.c' \
17 \! -name 'llvmAsmParser.cpp' \
18 \! -name 'llvmAsmParser.h' \
19 \! -name 'FileParser.cpp' \
20 \! -name 'FileParser.h' \
21 -exec egrep -H -n $PATTERN {} \;
22fi