summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog4
-rw-r--r--doc/PROGRAMMING6
2 files changed, 9 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 712000f6..d5437c73 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,10 @@ debhelper (12.1.2) UNRELEASED; urgency=medium
passed in a non-cross build. (Closes: #925175)
* dh_perl: Fix code to prune (skip) /usr/share/doc which
never worked.
+ * doc/PROGRAMMING: Document that the environment variable
+ DH_AUTOSCRIPTDIR can be used for testing purposes to
+ shadow existing or test new autoscript snippets. Thanks
+ to Dmitry Bogatov for the suggestion. (Closes: #925281)
[ Helmut Grohne ]
* Buildsystem/cmake: Fix CMAKE_SYSTEM_PROCESSOR for mips64el.
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index af4fedeb..893b87fc 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -248,7 +248,11 @@ autoscript($package, $scriptname, $snippetname, $substparam)
Pass parameters:
- binary package to be affected
- script to add to
- - filename of snippet
+ - filename of snippet. For testing purposes, you can set the
+ environment variable DH_AUTOSCRIPTDIR to a directory contaning
+ the snippets, which can be used to shadow the snippets provided
+ in /usr/share/debhelper/autoscripts (or to test newly added
+ snippets).
- (optional) A substitution parameter, which is one of 3 times:
* sed commands to run on the snippet. E.g. s/#PACKAGE#/$PACKAGE/
Note: Passed to the shell inside double quotes.