[llvm-commits] CVS: llvm/utils/countloc.sh
Reid Spencer
reid at x10sys.com
Fri Aug 11 14:55:48 PDT 2006
Changes in directory llvm/utils:
countloc.sh updated: 1.4 -> 1.5
---
Log message:
Make this script not care where it is run from by getting the llvm src
root from the llvm-config script.
---
Diffs of the changes: (+1 -1)
countloc.sh | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/utils/countloc.sh
diff -u llvm/utils/countloc.sh:1.4 llvm/utils/countloc.sh:1.5
--- llvm/utils/countloc.sh:1.4 Mon Sep 20 03:09:36 2004
+++ llvm/utils/countloc.sh Fri Aug 11 16:55:31 2006
@@ -19,7 +19,7 @@
# details.
##===----------------------------------------------------------------------===##
-TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
+TOPDIR=`llvm-config --src-root`
if test -d "$TOPDIR" ; then
cd $TOPDIR
./utils/llvmdo -dirs "include lib tools test utils examples" wc -l | awk '\
More information about the llvm-commits
mailing list