cloc - statistics utility to count lines of code
Now the manpage mentions that it can be used to count lines of code of a tarball
Now a debian package is just like a compressed tarball. Is there a way to use cloc.
I tried :-
[$] cloc cloc_1.60-1.1_all.deb 0 text files. 0 unique files. 1 file ignored.
The output isn't correct. I tried to see how many files are in the debian package and saw :-
[$] dpkg -L cloc /. /usr /usr/share /usr/share/man /usr/share/man/man1 /usr/share/man/man1/cloc.1.gz /usr/share/doc /usr/share/doc/cloc /usr/share/doc/cloc/changelog.Debian.gz /usr/share/doc/cloc/changelog.gz /usr/share/doc/cloc/copyright /usr/bin /usr/bin/cloc
So either it's a bug in cloc or I didn't apply it correctly. For the record, I have downloaded the debian package of cloc to use as an example (as it's small).
[$] ls -lh cloc_1.60-1.1_all.deb -rw-r--r-- 1 shirish shirish 88K Jul 24 2015 cloc_1.60-1.1_all.deb
Look forward for answers.