directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r328041 - /directory/codesize-new.sh
Date Mon, 24 Oct 2005 11:50:22 GMT
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 = *



Mime
View raw message