coll/copyright-file: Don't create empty copyright files

If there is no (extractable) copyright file, don't waste an inode on
creating an empty one.

Signed-off-by: Niels Thykier <niels@thykier.net>
c/copyright-file.pm: Remove redundant call to $info->index

Signed-off-by: Niels Thykier <niels@thykier.net>
c/manpages.pm: Remove redundant variable

Signed-off-by: Niels Thykier <niels@thykier.net>
d/dirs: Remove unused entry for /var/lib/lintian

Signed-off-by: Niels Thykier <niels@thykier.net>
Install auto-generated API documentation into usr/share/doc

Signed-off-by: Niels Thykier <niels@thykier.net>
critic.t: Remove t/runtests from @DIRS

Signed-off-by: Niels Thykier <niels@thykier.net>
p/generate-html-docs: Fix perlcritic warning

Signed-off-by: Niels Thykier <niels@thykier.net>
L::C::Source: Sanity check package names read from d/control

Signed-off-by: Niels Thykier <niels@thykier.net>
WritingChecks.pod: Add explicit return to examples

We recommend third-party checks to return explicitly, so make sure the
examples reflect this.

Signed-off-by: Niels Thykier <niels@thykier.net>
c/debconf.pm: Use $info->binaries

Signed-off-by: Niels Thykier <niels@thykier.net>
d/rules: Pass an output dir to generate-html-docs

This ensures that the auto-generated docs are removed in clean.

Signed-off-by: Niels Thykier <niels@thykier.net>
checks/*.pm: Add (and correct) final returns

Our own documentation recommends that the run sub of checks should
return an undefined value.  Ensure the official checks comply with
this and at the same time, add missing "final return" to all other
subs in check files.

Signed-off-by: Niels Thykier <niels@thykier.net>
c/changelog-file.pm: Merge two loops into one

Signed-off-by: Niels Thykier <niels@thykier.net>
{critic,strict}.t: Remember to test scripts in helpers/

Signed-off-by: Niels Thykier <niels@thykier.net>
Add (and comply with) "RequireFinalReturn" perlcritic policy

Signed-off-by: Niels Thykier <niels@thykier.net>
Refresh some data files against sid

Signed-off-by: Niels Thykier <niels@thykier.net>
add systemd checks

Signed-off-by: Niels Thykier <niels@thykier.net>
c/systemd: Rename and do some "stylistic" changes

Signed-off-by: Niels Thykier <niels@thykier.net>
c/systemd.pm: Correct handling of include

Signed-off-by: Niels Thykier <niels@thykier.net>
c/systemd.pm: Ignore README, skeleton, rc and rcS

Signed-off-by: Niels Thykier <niels@thykier.net>