From c262372b3684fe116f7a1d2f79c0a166d6ea68b3 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 18 May 2019 10:41:22 +0000 Subject: PROGRAMMING: Document DH_AUTOSCRIPTDIR Signed-off-by: Niels Thykier --- doc/PROGRAMMING | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/PROGRAMMING') 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. -- cgit v1.2.3