summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2019-05-18 10:41:22 +0000
committerNiels Thykier <niels@thykier.net>2019-05-18 10:41:22 +0000
commitc262372b3684fe116f7a1d2f79c0a166d6ea68b3 (patch)
tree5b89d1e7f827213da59ec9eaf5342e68ac518a8d /doc
parent32dce36087c35668b74815e0f88eefce250d31a9 (diff)
downloaddebhelper-c262372b3684fe116f7a1d2f79c0a166d6ea68b3.tar.gz
PROGRAMMING: Document DH_AUTOSCRIPTDIR
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/PROGRAMMING6
1 files changed, 5 insertions, 1 deletions
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.