sourcelines
Here's some ruby to count the source code lines of the files of varying languages you pass in. To see the languages, pass in no arguments, currently this is
-Ruby / ruby,rb / ruby -PHP / php,inc / php -Shellscript / bash,sh,tcsh,ash / bash,sh,tcsh,ash -Perl / perl,pl / perl -Python / py,jython,python / python,jython -ML / ml,sml / ml -Java / java / -Javascript / js / -C / c,cc,cpp,cs / -HTML / html,htm / -Scheme / ss,scm / scheme,mzc -Lisp / lsp,lisp / lisp
otherwise you can pass in a -v to be loud or
a -p to print the total per file.
Source
Here's a tar ball of the source
sourcelines.tar.gz
and the main offenders
Makefile
sourcelines
source-lines.rb
run_test
