blackducksoftware / ohcount

The Ohloh source code line counter
https://github.com/blackducksoftware/ohcount
GNU General Public License v2.0
257 stars 74 forks source link

Update Ohcount to work with Ubuntu 14 #41

Closed PDegenPortnoy closed 9 years ago

PDegenPortnoy commented 9 years ago

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.