diff options
author | David A. Wheeler <dwheeler@dwheeler.com> | 2013-09-01 19:49:37 -0400 |
---|---|---|
committer | David A. Wheeler <dwheeler@dwheeler.com> | 2013-09-01 19:49:37 -0400 |
commit | d68a3445d69542161bcebd68dd55f38ca8337042 (patch) | |
tree | 7e1691b6a2c396088e47d0b6235fce338a2ec754 | |
parent | ba8f663f16c3e8c4abd2ef7ec5966a7dc338b962 (diff) | |
download | sloccount-git-d68a3445d69542161bcebd68dd55f38ca8337042.tar.gz |
Fix so sloccount handles shebang in ruby scripts. [from Doug Holland]
- See: https://sourceforge.net/p/sloccount/patches/1/
- From Doug Holland (thanks!)
-rwxr-xr-x | break_filelist | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/break_filelist b/break_filelist index 7df41ab..a4f9858 100755 --- a/break_filelist +++ b/break_filelist @@ -903,6 +903,9 @@ sub file_type_from_contents() { 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"; } |