summaryrefslogtreecommitdiff
path: root/doc/PROGRAMMING
AgeCommit message (Collapse)AuthorFilesLines
2019-08-16Update documentation and changelog to cover new sequence/addon featuresNiels Thykier1-0/+17
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-05-18PROGRAMMING: Document DH_AUTOSCRIPTDIRNiels Thykier1-1/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-21PROGRAMMING: Update doc to reflect current practiceNiels Thykier1-2/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-21PROGRAMMING: Fix typoNiels Thykier1-2/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-21PROGRAMMING: Fix typoNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-26doc/PROGRAMMING: Fix typoed variants of "i.e."Josh Triplett1-2/+2
2018-09-26doc/PROGRAMMING: Fix typo: s/superflouos/superfluous/Josh Triplett1-1/+1
2018-09-26doc/PROGRAMMING: Fix typo: s/log_intalled_files/log_installed_files/Josh Triplett1-1/+1
2018-09-09Make -k/--keep a per helper optionNiels Thykier1-1/+0
2018-09-02doc/PROGRAMMING: Remove --priorityNiels Thykier1-1/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-30Dh_Lib: doit - support update_env to change child %ENVNiels Thykier1-1/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Spelling fixesVille Skyttä1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-08Push the removal of some deprecated items to compat 12Niels Thykier1-2/+2
The change list for compat 11 is rather intimidating as it is currently. Move some of the clean up to compat 12 to reduce the list a bit. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-19PROGRAMMING: Fix typo in version numberNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-19Dh_Lib: Add "chdir" to the *_doit + doit APINiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22autoscript: Support hashref for substitutionNiels Thykier1-6/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22Dh_Lib: Fix shell bug and add stdout redirectNiels Thykier1-4/+16
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-09PROGRAMMING: Document how to write logging helpersNiels Thykier1-0/+57
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-09dh: Support pkgfile and pkgfile-logged PROMISE hintsNiels Thykier1-1/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-07Dh_Lib: Embed tool versions into auto-generated snippetsNiels Thykier1-3/+6
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-06-26doc/PROGRAMMING: Correct doc of on_items_in_parallelNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26Dh_Lib: Rename sub to on_items_in_parallelNiels Thykier1-4/+10
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-24PROGRAMMING: Document error handling in parallel runsNiels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24Dh_Lib: Add on_selected_pkgs_in_parallelNiels Thykier1-3/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-13Dh_Lib: Add on_pkgs_in_parallelNiels Thykier1-0/+18
Signed-off-by: Niels Thykier <niels@thykier.net> fixup! Dh_Lib: Add on_each_pkg_in_parallel
2017-04-08doc/PROGRAMMING: Correct log_installed_filesNiels Thykier1-2/+7
After testing, it became apparent that dh_missing + log_installed_files behaved slightly different than first anticipated. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08log_installed_files: Compute the helper name automaticallyNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08Move dh_install’s --{list,fail}-missing to dh_missingMichael Stapelberg1-0/+4
This commit splits dh_install’s --list-missing and --fail-missing functionality into the separate helper dh_missing. To make this work, dh_install logs its source patterns and dh_missing reads these patterns, treating them as installed. This allows us to address #415396, i.e. recognize files installed by other helpers (e.g. dh_installman) as installed. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-02-19doc: fix typo s/diagnotic/diagnostic/Mattia Rizzolo1-1/+1
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2017-02-19Dh_Lib: Provide deprecated_functionality helperNiels Thykier1-0/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Dh_Lib: Add a reset_perm_and_owner functionNiels Thykier1-0/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Refactor install_dir usage to avoid the "if -d " testsNiels Thykier1-0/+1
They were not needed in the first place (as "install -d" DTRT). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-08-14Support auto-detection of whitelisted build-systemsNiels Thykier1-2/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01dh_installman: Replace zcat with new open_gzNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-10Dh_Lib: Add restore_file_on_cleanNiels Thykier1-0/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-12-23getpackages: Restore behaviour of omitting $type parameterNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-10-13doc/PROGRAMMING: Fix typoNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-09-10dh_makeshlibs: Use ldconfig trigger instead of maintscriptsNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-30Dh_Lib.pm: Drop udeb_filename subroutineNiels Thykier1-2/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-30Revert "dh_builddeb: Let dpkg determine the udeb filename by default"Niels Thykier1-0/+2
This reverts commit b418f73de540dcc3c050c935dab90eed23fe610c. While dpkg-gencontrol does the right thing, dpkg-deb does not realise it is building a udeb.
2015-08-30dh_builddeb: Let dpkg determine the udeb filename by defaultNiels Thykier1-2/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-12Dh_Lib: Export get_source_date_epoch()Niels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-06-15Merge branch 'master' into super-cow-ddebs-supportNiels Thykier1-0/+6
Conflicts: Debian/Debhelper/Dh_Lib.pm debian/changelog
2015-05-20Dh_Lib: Promote error_exitcode to an API subNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-20PROGRAMMING: Document the use of debian/.debhelperNiels Thykier1-3/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08doc/PROGRAMMING: Document install_{dir,file,prog,lib}Niels Thykier1-0/+15
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-07add DH_QUIET environment variableBernhard R. Link1-0/+11
Add a DH_QUIET environment variable to make debhelper more silent if set (unless DH_VERBOSE is set). Add new helper functions print_and_doit, print_and_doint_noerror, and nonquiet_print. If DH_QUIET is set, disable printing of dh subcommands to be run. Describe effects DH_QUIET should have in doc/PROGRAMMING.
2015-01-03Add install_dh_config_file and exec lintian-overrides (compat 9)Niels Thykier1-0/+5
Add a install_dh_config_file to install or execute and create a file from the output of a debhelper config file (e.g. debian/lintian-overrides). Use this subroutine in dh_lintian to install the lintian-overrides. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-01Added make_symlink to create Policy compliant symlinksNiels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-05-05dh: Skips running commands that it can tell do nothing.Joey Hess1-0/+10
This is determined by the presence of special PROMISE directives within commands that provide a high-level description of the command. Note that when dh is passed additional debhelper options, it cannot tell if these change the behavior of commands, and so it stops skipping any commands.