Package: sloccount
Version: 2.26-2.1
Followup-For: Bug #379448
the attached patch recognizes ruby files based on the #! line
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
diff -u sloccount-2.26/break_filelist sloccount-2.26-ruby/break_filelist
--- sloccount-2.26/break_filelist 2004-08-01 06:17:28.000000000 +0200
+++ sloccount-2.26-ruby/break_filelist 2008-02-20 14:15:59.000000000 +0100
@@ -903,6 +903,9 @@
if ($command =~ m/^python[0-9\.]*(\.exe)?$/i) {
return "python";
}
+ if ($command =~ m/~ruby[0-9\.]*(\.exe)?$/i) {
+ return "ruby";
+ }
if ($command =~ m/^(tcl|tclsh|bltwish|wish|wishx|WISH)[0-9\.]*(\.exe)?$/i) {
return "tcl";
}