Update Ohcount to work with Ubuntu 14
authorPeter Degen-Portnoy <pdegenportnoy@blackducksoftware.com>
Wed, 6 Aug 2014 10:50:52 +0000 (10:50 +0000)
committerPeter Degen-Portnoy <pdegenportnoy@blackducksoftware.com>
Wed, 6 Aug 2014 10:50:52 +0000 (10:50 +0000)
commitda4b6d6ffb5d0b5dde0ccbdcfefce568f6941d7c
tree010662518fa73c18d07e8d77d8b3a1bae64ed7e0
parente458973b826fd816c5702ccb14a0b478d6fd5a54
Update Ohcount to work with Ubuntu 14

The most significant change is that the perl script
that generates HTML, especially with the "<!DOCTYPE html" heading,
is now identified as HTML.  This is due to differences in the
libmagic database between CentOS 5 and Ubuntu 14.

It may be possible to generate a different database, or modify the
existing database to change the identification order.  However,
it is also worth acknowledging that, in the years since this code
was first developed, it may be more correct to recognize a script
that generates a complete HTML document as 'HTML', even if that
script is written in something like perl.
ruby/x86_64-linux_ubuntu/ohcount.so [new file with mode: 0755]
src/detector.c
src/sourcefile.c
test/src_dir/html.cgi [moved from test/src_dir/perl.cgi with 100% similarity]
test/unit/ruby/source_file_test.rb
test/unit/sourcefile_test.h