]> git.donarmstrong.com Git - debhelper.git/blob - dh_lintian
Typo. Closes: #653339
[debhelper.git] / dh_lintian
1 #!/usr/bin/perl -w
2
3 =head1 NAME
4
5 dh_lintian - install lintian override files into package build directories
6
7 =cut
8
9 use strict;
10 use Debian::Debhelper::Dh_Lib;
11
12 =head1 SYNOPSIS
13
14 B<dh_lintian> [S<I<debhelper options>>]
15
16 =head1 DESCRIPTION
17
18 B<dh_lintian> is a debhelper program that is responsible for installing
19 override files used by lintian into package build directories.
20
21 =head1 FILES
22
23 =over 4
24
25 =item debian/I<package>.lintian-overrides
26
27 Installed into usr/share/lintian/overrides/I<package> in the package
28 build directory. This file is used to suppress erroneous lintian
29 diagnostics.
30
31 =item F<debian/source.lintian-overrides>
32
33 These files are not installed, but will be scanned by lintian to provide
34 overrides for the source package.
35
36 =back
37
38 =cut
39
40 init();
41
42 foreach my $package (@{$dh{DOPACKAGES}}) {
43         next if is_udeb($package);
44
45         my $tmp=tmpdir($package);
46         my $or_dir = "$tmp/usr/share/lintian/overrides";
47         my $overrides=pkgfile($package,"lintian-overrides");
48
49         if ($overrides ne '') {
50                 if (! -d "$or_dir") {
51                          doit("install","-d","$or_dir");
52                 }
53                 doit("install","-p","-m644",$overrides,"$or_dir/$package");
54         }
55 }
56
57 =head1 SEE ALSO
58
59 L<debhelper(1)>
60
61 This program is a part of debhelper.
62
63 L<lintian(1)>
64
65 =head1 AUTHOR
66
67 Steve Robbins <smr@debian.org>
68
69 =cut