$ LINTIAN_ROOT=. perl lintian-ng ../lintian_2.5.10.dsc Successfully unpacked 1 packages Did you know that source:lintian/2.5.10 contains 3745 files or/and directories (excl. root dir) This useless information was brought to you by Lintian-NG $ git describe 2.5.10-61-g7670427 $ wc -l lintian-ng 90 lintian-ng
This includes everything from creating a temporary lab, adding the packages to it and running all of Lintian’s collections on it (parallelised, of cource).
Writing this script yesterday would probably have required 250-300 lines of code to achieve the same. That said, 90 lines are still a bit much to copy/waste into this blog, so I won’t do a “$ cat lintian-ng”. 🙂
If you are interested in how it looks you can (for now) fetch it from http://people.debian.org/~nthykier/lintian-ng/lintian-ng
Oh yeah, “files or/and directories” is actually any (extractable) entry in the tarball…