summaryrefslogtreecommitdiff
path: root/utils/getsrcs.sh
blob: 2b2f7089e580a3a30a3202ca581fa4aebea5b72a (plain)
1
2
3
4
5
6
7
8
9
10
#!/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