Wrap long line, actually add node to the graph.
[oota-llvm.git] / utils / getsrcs.sh
1 #!/bin/sh
2 ##===- utils/getsrcs.sh - Counts Lines Of Code ---------------*- Script -*-===##
3
4 #                     The LLVM Compiler Infrastructure
5 #
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 
8 # details.
9
10 ##===----------------------------------------------------------------------===##
11 #
12 # This script just prints out the path names for all the source files in LLVM.
13 #
14 # Note that the implementation is based on llvmdo. See that script for more
15 # details.
16 ##===----------------------------------------------------------------------===##
17
18 TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
19 if test -d "$TOPDIR" ; then
20   cd $TOPDIR
21   ./utils/llvmdo -dirs "include lib tools utils examples projects" echo
22 else
23   echo "Can't find LLVM top directory in $TOPDIR"
24 fi