I've just built ohcount from the git repos and it isn't recursively scanning my source directories. The help says "Directories will be probed recursively." by default, yet it only scans the directory I give it, not all the subsequent ones.
hi docgnome,
I'm unable to reproduce this problem on either a mac or an ubuntu machine. Please open a ticket or if you're not able to do that, please provide more details about your OS and the exact command you're giving. Thanks.
I'm using gentoo. It does not build on my ubuntu machine. The error I get there is
Building src/parser.c (will take a while) In file included from src/parser.c:8: parsers.gperf:31:29: error: ../parsers/haml.h: No such file or directory parsers.gperf:54:29: error: ../parsers/perl.h: No such file or directory parsers.gperf:60:29: error: ../parsers/ruby.h: No such file or directory parsers.gperf:61:30: error: ../parsers/rhtml.h: No such file or directory In file included from src/parser.c:8: parsers.gperf: In function ‘ohcounthashparserfromlanguage’: parsers.gperf:137: error: ‘parseperl’ undeclared (first use in this function) parsers.gperf:137: error: (Each undeclared identifier is reported only once parsers.gperf:137: error: for each function it appears in.) parsers.gperf:115: error: ‘parsehaml’ undeclared (first use in this function) parsers.gperf:143: error: ‘parserhtml’ undeclared (first use in this function) parsers.gperf:144: error: ‘parseruby’ undeclared (first use in this function)
The command I'm running is ./ohcount ~/www/httpdocs/ ~/www/httpdocs is where my project lives and ohcount says "Examining 39 file(s)" and then returns the count on those 39. However I have far more than that in subdirectories.
About your compilation is not recursing directories, I've fixed this BUG (I use Gentoo too, and I reproduced the same problem as you described). Please check Trac system [Ticket 55] and [Ticket 56].
If you like to taste 'brand new' stuff, you can try a fork I've made and try to compile using CMake: http://github.com/balena/ohcount
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.