Added llvmgcc version to allow tests to be xfailed by frontend version.
[llvm-complete.git] / utils / getsrcs.sh
blobc757b2c40249db507f2f6ffbe79208aa22bd0117
1 #!/bin/sh
2 ##===- utils/getsrcs.sh - Counts Lines Of Code ---------------*- Script -*-===##
3 #
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
8 # details.
9 #
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
15 # details.
16 ##===----------------------------------------------------------------------===##
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"