blob: 18af4346e75e908e2f12a4483198bec88a437652 [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.
Reid Spencerb27b78f2004-09-20 07:22:23 +00004TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
Reid Spencer2d672082004-06-19 20:32:55 +00005if test -d "$TOPDIR" ; then
6 cd $TOPDIR
Reid Spencerb27b78f2004-09-20 07:22:23 +00007 ./utils/llvmdo -dirs "include lib tools utils docs examples test projects" egrep -H -n "$*"
Reid Spencer23a354d2004-07-07 21:19:01 +00008else
9 echo "Can't find LLVM top directory in $TOPDIR"
Reid Spencer2d672082004-06-19 20:32:55 +000010fi