directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r280505 - /directory/codesize.sh
Date Tue, 13 Sep 2005 05:18:30 GMT
Author: akarasulu
Date: Mon Sep 12 22:18:27 2005
New Revision: 280505

URL: http://svn.apache.org/viewcvs?rev=280505&view=rev
Log:
Emmanuel those changes from commit revision 151105 do not seem to work on the mac so I will
revert for now

Modified:
    directory/codesize.sh

Modified: directory/codesize.sh
URL: http://svn.apache.org/viewcvs/directory/codesize.sh?rev=280505&r1=280504&r2=280505&view=diff
==============================================================================
--- directory/codesize.sh (original)
+++ directory/codesize.sh Mon Sep 12 22:18:27 2005
@@ -7,9 +7,14 @@
            	continue;
         fi;
 
-        lines=$(for file in $(find $trunk -type f -name "*.java"); do wc -l $file; done |
awk '{sum += $col} END {print sum}')
-
-
+	mkdir temp
+    	for file in `find $trunk -type f -regex '.*\.java'`; do
+    		cp $file temp;
+        done;
+        cd temp;
+        lines=`wc -l * | grep total | awk '{print $1}'`;
+        cd ../
+        rm -rf temp;
         echo "lines of code in $trunk = $lines";
         total=$(($lines + $total));
 done;



Mime
View raw message