Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 1 | #!/bin/sh |
Reid Spencer | 181e65d | 2004-09-20 08:09:36 +0000 | [diff] [blame] | 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 | |
Reid Spencer | b27b78f | 2004-09-20 07:22:23 +0000 | [diff] [blame] | 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 |