You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/10/24 13:50:22 UTC

svn commit: r328041 - /directory/codesize-new.sh

Author: ersiner
Date: Mon Oct 24 04:50:05 2005
New Revision: 328041

URL: http://svn.apache.org/viewcvs?rev=328041&view=rev
Log:
a faster implementation of code size calculation script

Added:
    directory/codesize-new.sh   (with props)

Added: directory/codesize-new.sh
URL: http://svn.apache.org/viewcvs/directory/codesize-new.sh?rev=328041&view=auto
==============================================================================
--- directory/codesize-new.sh (added)
+++ directory/codesize-new.sh Mon Oct 24 04:50:05 2005
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+total=0;
+
+for trunk in $(find . -type d -regex '.*trunk'| egrep -v 'sandbox|sitedocs'); do 
+   	
+	lines=$(find $trunk -type f -regex '.*\.java' | xargs wc -l | grep total | awk '{print $1}')
+
+	echo "lines of code in $trunk = $lines";
+
+	total=$(($lines + $total));
+done;
+
+echo "Total (without sandbox): $total"

Propchange: directory/codesize-new.sh
------------------------------------------------------------------------------
    svn:executable = *