[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH initramfs-tools 1/2] bash-completion: Install using dh_bash-completion



Installing in /etc/bash_completion.d is deprecated.  Use
dh_bash-completion to do the right thing.

(dh_bash-completion doesn't currently do the right thing, but
it will do soon: https://bugs.debian.org/668254 )

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 debian/control                         | 2 +-
 debian/initramfs-tools.bash-completion | 1 +
 debian/initramfs-tools.install         | 1 -
 debian/rules                           | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100644 debian/initramfs-tools.bash-completion

diff --git a/debian/control b/debian/control
index 5ff8b0d..43369e9 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: utils
 Priority: optional
 Uploaders: maximilian attems <maks@debian.org>, Michael Prokop <
mika@debian.org>, Adam Conrad <adconrad@0c3.net>, Ben Hutchings <
ben@decadent.org.uk>
 Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
-Build-Depends: debhelper (>= 7.0)
+Build-Depends: debhelper (>= 7.0), bash-completion
 Standards-Version: 3.9.6
 Vcs-Browser: http://git.debian.org/?p=kernel/initramfs-tools.git
 Vcs-Git: git://git.debian.org/git/kernel/initramfs-tools.git
diff --git a/debian/initramfs-tools.bash-completion b/debian/initramfs
-tools.bash-completion
new file mode 100644
index 0000000..14d3d16
--- /dev/null
+++ b/debian/initramfs-tools.bash-completion
@@ -0,0 +1 @@
+bash_completion.d/initramfs-tools
diff --git a/debian/initramfs-tools.install b/debian/initramfs
-tools.install
index 25d7990..585d4b9 100644
--- a/debian/initramfs-tools.install
+++ b/debian/initramfs-tools.install
@@ -11,4 +11,3 @@ update-initramfs	usr/sbin
 debian/script		usr/share/bug/initramfs-tools
 debian/lintian/initramfs-tools	usr/share/lintian/overrides
 kernel			etc
-bash_completion.d	etc
diff --git a/debian/rules b/debian/rules
index 2d33f6a..e6e920c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@
+	dh --with bash-completion $@

-- 
Ben Hutchings
Theory and practice are closer in theory than in practice.
                                - John Levine, moderator of comp.compilers

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: