2 ##===- utils/getsrcs.sh - Counts Lines Of Code ---------------*- Script -*-===##
4 # The LLVM Compiler Infrastructure
6 # This file was developed by Chris Lattner and Reid Spencer and is distributed
7 # under the # University of Illinois Open Source License. See LICENSE.TXT for
10 ##===----------------------------------------------------------------------===##
12 # This script just prints out the path names for all the source files in LLVM.
14 # Note that the implementation is based on llvmdo. See that script for more
16 ##===----------------------------------------------------------------------===##
18 TOPDIR
=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
19 if test -d "$TOPDIR" ; then
21 .
/utils
/llvmdo
-dirs "include lib tools utils examples projects" echo
23 echo "Can't find LLVM top directory in $TOPDIR"