llvm-6502/utils/getsrcs.sh
Reid Spencer b27b78f6a4 Base the implementation on the llvmdo script so that we only have to
maintain the logic for "what counts as a source file" in one place.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16442 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-20 07:22:23 +00:00

11 lines
310 B
Bash
Executable File

#!/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 examples projects" echo
else
echo "Can't find LLVM top directory in $TOPDIR"
fi