summaryrefslogtreecommitdiff
path: root/dh_systemd_enable
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-07-07 10:43:25 +0000
committerNiels Thykier <niels@thykier.net>2017-07-07 11:24:18 +0000
commit1d94471647f372c55bfed8e33f9e6d33c30ab85c (patch)
treecb27db04689b2198588ccb0f0940cc2f9e564b56 /dh_systemd_enable
parentb7ca7f5adf4efbef7693d62e0e029bb18d30040d (diff)
downloaddebhelper-1d94471647f372c55bfed8e33f9e6d33c30ab85c.tar.gz
Dh_Lib: Embed tool versions into auto-generated snippets
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>
Diffstat (limited to 'dh_systemd_enable')
-rwxr-xr-xdh_systemd_enable2
1 files changed, 2 insertions, 0 deletions
diff --git a/dh_systemd_enable b/dh_systemd_enable
index b89c9518..9a256b0c 100755
--- a/dh_systemd_enable
+++ b/dh_systemd_enable
@@ -11,6 +11,8 @@ use warnings;
use Debian::Debhelper::Dh_Lib;
use File::Find;
+our $VERSION = DH_BUILTIN_VERSION;
+
=head1 SYNOPSIS
B<dh_systemd_enable> [S<I<debhelper options>>] [B<--no-enable>] [B<--name=>I<name>] [S<I<unit file> ...>]