[debhelper-devel] [debhelper] 11/17: dh_installdocs: Support --sourcedir and fallback to d/tmp [c11]
Niels Thykier
nthykier at moszumanska.debian.org
Thu Jun 29 15:49:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit ecb452465fb31c817f185130dca5d42f576d7463
Author: Niels Thykier <niels at thykier.net>
Date: Thu Jun 29 10:57:34 2017 +0000
dh_installdocs: Support --sourcedir and fallback to d/tmp [c11]
---
dh_installdocs | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/dh_installdocs b/dh_installdocs
index e8ecc44..8e09022 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -19,11 +19,16 @@ B<dh_installdocs> [S<I<debhelper options>>] [B<-A>] [B<-X>I<item>] [S<I<file> ..
B<dh_installdocs> is a debhelper program that is responsible for installing
documentation into F<usr/share/doc/package> in package build directories.
-When upstream's own build system installs all the desired documentation
-correctly, then B<dh_install> may be a better tool for handling the upstream
-documentation. In this case, B<dh_installdocs> is still useful for installing
+In compat 10 and earlier, L<dh_install(1)> may be a better tool for handling
+the upstream documentation, when upstream's own build system installs all the desired documentation
+correctly. In this case, B<dh_installdocs> is still useful for installing
packaging related documentation (e.g. the F<debian/copyright> file).
+In compat 11 and later, B<dh_installdocs> offers many of the features that
+L<dh_install(1)> also have. Futhermore, B<dh_installdocs> also supports
+the B<nodoc> build profile to exclude documentation (regardless of compat
+level).
+
=head1 FILES
=over 4
@@ -178,12 +183,14 @@ sub ensure_docdir {
init(options => {
"link-doc=s" => \$dh{LINK_DOC},
+ "sourcedir=s" => \$dh{SOURCEDIR},
});
my $called_getpackages = 0;
my @search_dirs = ('.');
my $error_handler = compat(10) ? \&glob_expand_error_handler_warn_and_discard : \&glob_expand_error_handler_reject;
my $nodocs = is_build_profile_active('nodoc') ? 1 : 0;
+ at search_dirs = ($dh{SOURCEDIR} // '.', 'debian/tmp') if not compat(10);
foreach my $package (getpackages()) {
next if is_udeb($package);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list