summaryrefslogtreecommitdiff
path: root/dh_installman
AgeCommit message (Collapse)AuthorFilesLines
2019-10-24dh_installman: Correctly handle compressed manpages w. man-recodeColin Watson1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-09-29dh_installman: Avoid checking for man if we know man-recode is presentNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-09-29dh_installman: Use man-recode(1) when presentNiels Thykier1-13/+24
It is a lot faster for any package with a non-trivial amount of manpages- Signed-off-by: Niels Thykier <niels@thykier.net>
2019-09-29dh_installman: Avoid error messages when man-db is not presentNiels Thykier1-1/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-07-13dh_installman: Improve c11 documentationNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-13dh_installman: Rollback to qx-based check for manNiels Thykier1-8/+1
Our current detections fail horriable on gitlab/salsa where there is a man(1) in PATH that triggers EPERM when being run (but a -x test in PATH does not filter it out). Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-13dh_installman: Check for man(1) in PATH rather than exec'ingNiels Thykier1-1/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-13Dh_Lib,dh_installman: Reopen stdin for reading in doit/man(1)-checkNiels Thykier1-1/+1
This make debhelper work when run under nohup(1), which opens stdin for writing. Trivial to test with: dpkg-buildpackage [...] 0>/dev/null (Once you know that you are looking for it). Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-14dh_*: Add cli-options NOOP PROMISES for most helpersNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-30Restore glob error handling for documentation dh_* toolsNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-10Revert "dh_installman: Handle .so plus target both being compressed"Niels Thykier1-10/+3
This reverts commit f51eec1ec890eacf624333227505fdb38f4375db.
2018-05-10dh_installman: Handle .so plus target both being compressedNiels Thykier1-3/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-04dh_install{docs,examples,info,man}: Add missing compat 11 documentationNiels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-12Accept nodoc via DEB_BUILD_OPTIONS as wellNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-06dh_install*: Accept missing files for packages not builtNiels Thykier1-3/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
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>