summaryrefslogtreecommitdiff
path: root/dh_installdocs
AgeCommit message (Collapse)AuthorFilesLines
2018-08-12dh_link, dh_installdocs: Fix typosFabian Wolff1-1/+1
2018-06-30Restore glob error handling for documentation dh_* toolsNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-11Fix "a architecture" typosOlly Betts1-2/+2
2018-02-04dh_install{docs,examples,info,man}: Add missing compat 11 documentationNiels Thykier1-0/+14
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-24dh_installdocs: Make -A neuter main-doc package auto-detectionNiels Thykier1-0/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-21Add minimal R³ support for debhelperNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-03dh_install{docs,examples}: Validate --doc-main-package argumentNiels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-03Improve some bits of documentationNiels Thykier1-2/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-09Fix bug in handling of doc dirsNiels Thykier1-3/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-31c11: Auto-detect main pkg for doc pkgs (§12.3)Niels Thykier1-3/+37
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-13dh_installdocs: Merge two doit('chmod',...) callsNiels Thykier1-2/+1
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-1/+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-2/+2
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-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-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-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_installdocs: Fix typoNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29Revert "dh_installdocs: Install use dir of mainpackage (C11)"Niels Thykier1-12/+3
This reverts commit 71007f72da682dd9d7f932d81ca2ecd5d46a0e70 (plus effectively 6c946cd0bb239a4fd02e7acbcb797ecccfb0e3cb). The policy said "X-doc => X" not "X-doc => main package", so the current implementation was insufficient. Roll it back while we figure out a better way to do this.
2017-06-29dh_installdocs: Support --sourcedir and fallback to d/tmp [c11]Niels Thykier1-3/+10
2017-06-29dh_installdocs: Log installed docs filesNiels Thykier1-35/+39
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28dh_installdocs: Use new glob_expand-enabled filearrayNiels Thykier1-3/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28dh_installdocs: Ignore doc-base files under nodocs profileNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28dh_installdocs: Do less under nodoc profileNiels Thykier1-5/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26Avoid some unnecessary stat callsNiels 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-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04include present/wanted architecture in error messageMichael Stapelberg1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-28dh_installdocs: Document another --link-doc limitationNiels Thykier1-1/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_installdocs: Recommend dh_install for upstream docs in some casesNiels Thykier1-0/+5
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-09-03Fix typo in dh_installdocs man pageJens Reyer1-1/+1
Closes: #836344
2016-07-09dh_installdocs: Fix regression in compat 11 modeSven Joachim1-1/+1
The change in commit 863ef397c939340e863be1e96c822934a3167852 was not quite correct, since ensure_docdir would create the doc directory under debian/$dh{MAINPACKAGE} rather than debian/$package in C11 mode. Restore the previous code and fix the original problem in bug #830309 ("install: cannot change permissions of 'debian/$package/usr/share/doc/$package': No such file or directory") by only creating the directory if it is not already a symlink, as is the case with the --link-doc option. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-08dh_installdocs: Fix regression wrt symlinked doc directorySven Joachim1-1/+1
If a package uses dh_installdocs' --link-doc option, install_dir could fail with an error message from install(1), because the symlink might be dangling. Use ensure_docdir instead which was designed precisely for this case. Regression introduced in commit 71007f72da682dd9d7f932d81ca2ecd5d46a0e70. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-02dh_installdocs: Install use dir of mainpackage (C11)Niels Thykier1-3/+12
In compat 11, use the directory of the mainpackage rather than the doc package as recommended by Debian Policy 3.9.7. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-06-15Remove support for compat 4Niels Thykier1-6/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01dh_*: Prefer 3-arg openNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-14Fix typosJakub Wilk1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06dh_install*: sort file lists passed to 'cp --parents -p' for reproducibilityNiko Tyni1-1/+3
The order in which the files are copied can affect directory timestamps when copying subdirectory hierarchies. 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-04-07dh_installdocs: Fix typo of install_dirNiels Thykier1-1/+1
Thanks to Reiner Herrmann for spotting it. :) Signed-off-by: Niels Thykier <niels@thykier.net>
2015-04-03dh_installdocs: Remove non-idempotence remarkNiels Thykier1-4/+0
It used to do maintainer scripts. However that feature is now done via triggers and accordingly the remark is now unncessary. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08dh_installdocs: Document a caveat of using --link-docNiels Thykier1-0/+10
Warn about the possible need for a "dir to symlink" (or "symlink to dir") migration when using (or stopping the use of) --link-doc. Refer people to dh_installdeb's maintscript feature for implementing said migration. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08dh_installdocs: Use ${binary:Version} in substvars w. --link-docNiels Thykier1-4/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08Migrate some calls to use the new install_X subsMartin Koeppe1-13/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-07Pass --reflink=auto to cpNiels Thykier1-2/+3
This gives faster copying on BTRFS with fallback to regular copy on all other filesystems. 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-29dh_installdocs: Warn (or error in compat 10) on unsafe binNMUsBernhard R. Link1-0/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-12-29Revert "dh_installdocs: Error out on some unsafe binNMUs with --link-doc"Niels Thykier1-29/+0
This reverts commit f631c4c30d17c5e537005bacfdd730dd9149cfcc.
2014-12-29Revert "dh_installdocs: Error out on unsafe binNMUs with --link-doc"Niels Thykier1-17/+3
This reverts commit 97993b514bfbcc84c213e9e5d68c1b1c3a833ce7.