You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/09/13 07:18:30 UTC
svn commit: r280505 - /directory/codesize.sh
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;