summaryrefslogtreecommitdiff
path: root/dh_installman
AgeCommit message (Collapse)AuthorFilesLines
2017-07-22Revert to the pre-10.6.4 behavior for dh_installdocs and the likeSven Joachim1-2/+1
It turned out that "dh_installdocs 'foo bar'" has historically treated the argument as a single file rather than two, and packages were relying on it, since there is really no other way to install such a file with dh_installdocs. Hence commit d00d7d524f8 broke them. The situation for dh_installexamples, dh_installman and dh_installinfo is exactly the same. That dh_install has behaved differently in this respect is unfortunate, but can only be fixed in a new compat level. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22Dh_Lib: Add stub default_sourcedir functionNiels Thykier1-3/+3
This function does not do anything particularly useful at the moment, but we hope to make it do that in the future. By including it now, other tools can migrate to it easier if/when it becomes useful. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22dh_installman: Pass -l to man when recodingNiels Thykier1-1/+1
It saves having man(1) consider the system collection. Thanks: Colin Watson <cjwatson@debian.org> Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22dh_installman: Remove complex_doit callsNiels Thykier1-2/+2
Avoid forking shells to start commands now that "doit" can do what we need. This saves up to 10% on packages with many manpages during recode (tested on libssl-doc). Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-12Re-instate bug compatibility to fix #867866Niels Thykier1-1/+2
Previous versions of debhelper had "interesting" way of interpreting arguments where it split them on space. This was mistakenly "corrected" in 10.6 when debhelper started to use bsd_glob (that does not split on spaces). To resolve this, manully split arguments like the original code would (effectively) have done so packages are unaffected by it. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-12dh_installman: Remove compressed manpages after reencodingSven Joachim1-1/+2
Since commit f9999ffaa5 dh_installman would inadvertently not remove compressed manpages after reencoding and thereby uncompressing them. This is not usually a problem since dh_compress takes care of it later, but if there are multiple hardlinks for the same file dh_compress fails in this situation. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-09dh: Support pkgfile and pkgfile-logged PROMISE hintsNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-07Dh_Lib: Embed tool versions into auto-generated snippetsNiels Thykier1-0/+2
Use $main::VERSION to determine the version of the tool and embed that into auto-generated snippets (e.g. via autoscript). This enables lintian to extract the tool + version and display it on: https://lintian.debian.org/tags/debhelper-autoscript-in-maintainer-scripts.html Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-05dh_installman: Fix regression with -P/dirNiels Thykier1-1/+2
Fixes: f9999ffaa5995ebef7cc9c5dc1dc7efc10bb5604 Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Set Emacs file variables directory-wideSven Joachim1-6/+0
Set the local variables for Emacs in the central placed intended for it, rather than in (currently) 95 individual files. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29dh_installman: Fix bug in the c11 language handlingNiels Thykier1-6/+10
It overrode explicitly defined languages (--language) but not the "faulty" detection it was supposed to replace. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29dh_installman: Fix a bug in the c11 language regexNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29dh_installman: Support --sourcedir and fallback to d/tmp [c11]Niels Thykier1-9/+26
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29dh_installman: Ignore missing manpages under nodoc profileNiels Thykier1-1/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28dh_installman: Use new glob_expand-enabled filearrayNiels Thykier1-1/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28dh_installman: Fix regression in compat 5Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28Refactor handling of $skip_install testsNiels Thykier1-2/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_installman: Split manpages between processesNiels Thykier1-20/+42
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26Dh_Lib: Rename sub to on_items_in_parallelNiels Thykier1-1/+1
Turns out that the sub is not specific to packages, so rename it to make it more self-descriptive (and to avoid making consumers to believe it is more limited than it is). Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26Avoid some unnecessary stat callsNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_installman: Use rename_path instead of doitNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26Avoid fork+exec for rm -f and ln -s in non-deprecated toolsNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-25dh_installman: In c11, detect manpage language from pathNiels Thykier1-2/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24dh_installman: Run in parallelNiels Thykier1-113/+117
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04dh_installman: Add a -- separator for chmodNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04dh_installman: Batch chmod callsNiels Thykier1-1/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04dh_installman: Fix mode and avoid chown callNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-05-06dh_installman: Improve description and add example config fileNiels Thykier1-9/+34
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_installman: always log manpages for all packagesNiels Thykier1-3/+6
Like with dh_install, we have to log installed files for all packages (even those not acted on). Otherwise, dh_missing will get the wrong results for "dpkg-buildpackage -B/-A" builds where only a subset of the packages are installed. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_installman: Log installed manpagesNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-08dh_installman: Fix syntax errorNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Dh_Lib: Add a reset_perm_and_owner functionNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Refactor install_dir usage to avoid the "if -d " testsNiels Thykier1-3/+1
They were not needed in the first place (as "install -d" DTRT). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01Drop .* from the beginning of unanchored regular expressionsPeter Pentchev1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01dh_installman: Replace zcat with new open_gzNiels Thykier1-9/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01dh_*: Prefer 3-arg openNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-10-02dh_installman: Add missing close(IN) callNiels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-07-01Migrate to use warnings and use parentNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08Migrate some calls to use the new install_X subsMartin Koeppe1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-01Add editor hints to the end of all perl modules and scriptsNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-12-22debhelper: fix typo in dh_installmanRaphael Geissert1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-05-05add PROMISEJoey Hess1-0/+2
2012-04-24dh_installman: Recognize sections from mdoc .Dt entriesGuillem Jover1-12/+14
2011-08-29debhelper no longer build-depends on man-db, to ease bootstrapping.Joey Hess1-2/+3
The man page recode is not necessary as the man pages are utf-8 already.
2010-11-02Apply manual pages conventionsDavid Prévot1-21/+21
As advised in man(1), always use: B<bold text> type exactly as shown. I<italic text> replace with appropriate argument. s/debian/Debian/ if needed. s/ / / also. s/perl/Perl/ s/python/Python/ and s/emacs/Emacs/ too.
2010-05-18dh_installman: Avoid converting .so links to symlinks if the link target is ↵Joey Hess1-2/+4
not present in the same binary package, on advice of Colin Watson. (To support eventual so search paths.)
2010-05-17dh_installman: Support .so links relative to the current section.Joey Hess1-1/+4
2009-12-15dhinstallman: Avoid doubled slashes in path. Closes: #561275Joey Hess1-1/+1
2009-11-20Remove last vestiages of support for /usr/X11R6.Joey Hess1-2/+2
2009-09-06releasing version 7.4.17.4.1Joey Hess1-0/+2