Skip to content

Commit

Permalink
Make this script not care where it is run from by getting the llvm src
Browse files Browse the repository at this point in the history
root from the llvm-config script.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29632 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Reid Spencer committed Aug 11, 2006
1 parent c9f8f41 commit 8312657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/countloc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '\
Expand Down

0 comments on commit 8312657

Please sign in to comment.