Browse Source

New LOC command.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1643 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 years ago
parent
commit
6d1068b765
1 changed files with 5 additions and 7 deletions
  1. 5 7
      loc

+ 5 - 7
loc

@@ -1,14 +1,12 @@
-wc -l exec/*.c exec/*.h include/*.h lib/*.c lib/*.h
-
-echo "Application Interface Specification Implementation Lines Of Code"
+echo "Corosync Cluster Engine LOC"
 echo -n "exec LOC    "
-cat exec/*.c exec/*.h | wc -l
+find exec -name *.[ch] -exec cat {} \; | wc -l
 
 echo -n "lib LOC     "
-cat lib/*.c lib/*.h | wc -l
+find lib -name *.[ch] -exec cat {} \; | wc -l
 
 echo -n "include LOC "
-cat include/*.h | wc -l
+find include -name *.[ch] -exec cat {} \; | wc -l
 
 echo -n "total LOC   "
-cat exec/*.c exec/*.h lib/*.c lib/*.h include/*.h | wc -l
+find . -name *.[ch] -exec cat {} \; | wc -l