7 ms·
$ sudo perl cloc-1.55.pl --unicode doom3.gpl/ 2014 text files. 1907 unique files. 476 files i
by dgallagher 15y ago
$ sudo perl cloc-1.55.pl --unicode doom3.gpl/
2014 text files.
1907 unique files.
476 files ignored.
http://cloc.sourceforge.net v 1.55 T=40.0 s (36.6 files/s, 22123.3 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C++ 517 87051 113094 366423
C/C++ Header 615 29640 26891 110991
C 170 11407 15566 53520
Bourne Shell 36 4529 5476 33717
m4 10 1079 232 9025
HTML 55 391 76 4142
Objective C++ 6 709 654 2605
Perl 10 523 411 2380
yacc 1 95 97 912
Python 10 108 182 895
Objective C 1 145 20 768
make 22 160 253 579
DOS Batch 5 0 0 61
Teamcenter def 4 3 0 51
Lisp 1 5 20 25
awk 1 2 1 17
-------------------------------------------------------------------------------
SUM: 1464 135847 162973 586111
-------------------------------------------------------------------------------
- JonnieCache 15y agoQuestion 1: Why did you run cloc as root? Question 2: Why does Doom 3 involve 33,717 lines of bash? That's a lot of bash. I realise it's used heavily for build scripts, but thirty three thousand lines seems excessive.
- wollw 15y agoNo clue about question 1 but 32,607 of those lines are all part of curl which seems to be distributed with the source code.
- beza1e1 15y agoFor question 2: It is essentially the configure script of the included curl library. $ wc -l neo/curl/configure 31052 neo/curl/configure
- deleted 15y ago[deleted]
- dgallagher 15y agoQuestion 1: Why did you run cloc as root? Hmmm, because of a really bad habit I need to break. ;)
- frobozz 15y agoIf your habit is what I think it is, I have the opposite habit - I never use sudo until it tells me I've tried to do something I'm not allowed to do - even if I know it's not going to let me. Then I use "sudo !!"
- DavidMcLaughlin 15y ago> Then I use "sudo !!" Wow. For six years I've been doing "UP + CTRL^A + sudo + SPACE" instead. This is much better.
- tome 15y agoOff-topic: I use Ctrl-P Ctrl-A sudo <space> which is exactly the same number of keystrokes as "sudo !!" and a much more general solution in my opinion.
- subnetvj 15y agoHow does it matter?
- rryan 15y agoNot even 1MM SLOC -- that alone is very impressive.