blob: c757b2c40249db507f2f6ffbe79208aa22bd0117 [file] [log] [blame]
Chris Lattner00950542001-06-06 20:29:01 +00001#!/bin/sh
Reid Spencer181e65d2004-09-20 08:09:36 +00002##===- 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
Reid Spencerb27b78f2004-09-20 07:22:23 +000018TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
19if test -d "$TOPDIR" ; then
20 cd $TOPDIR
21 ./utils/llvmdo -dirs "include lib tools utils examples projects" echo
22else
23 echo "Can't find LLVM top directory in $TOPDIR"
24fi