diff options
author | Niels Thykier <niels@thykier.net> | 2017-06-28 12:17:42 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-06-28 12:17:42 +0000 |
commit | b7da6ea323aae5bdd2a89c7ab4d3356ad938f683 (patch) | |
tree | fb0a6b24ca5484f45eb0891e064e98585630f267 /dh_installdocs | |
parent | 78ae00875157b0b0f010f18c97a4f6da4ae131df (diff) | |
download | debhelper-b7da6ea323aae5bdd2a89c7ab4d3356ad938f683.tar.gz |
dh_installdocs: Do less under nodoc profile
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-x | dh_installdocs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dh_installdocs b/dh_installdocs index fd594ffc..54b8a248 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -181,6 +181,8 @@ init(options => { }); my $called_getpackages = 0; +my $nodocs = 0; +$nodocs = 1 if is_build_profile_active('nodoc'); foreach my $package (@{$dh{DOPACKAGES}}) { next if is_udeb($package); @@ -220,12 +222,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my @docs; - if ($file) { - @docs=filearray($file, "."); - } + if (not $nodocs) { + if ($file) { + @docs = filearray($file, "."); + } - if (($package eq $dh{FIRSTPACKAGE} || ($dh{PARAMS_ALL} && ! $link_doc)) && @ARGV) { - push @docs, @ARGV; + if (($package eq $dh{FIRSTPACKAGE} || ($dh{PARAMS_ALL} && !$link_doc)) && @ARGV) { + push @docs, @ARGV; + } } if (@docs) { |