Browse Source

Add bash completion provided by upstream

Christoph Biedl 4 years ago
parent
commit
8021885a0f
4 changed files with 9 additions and 1 deletions
  1. 2 0
      debian/clevis.bash-completion
  2. 1 0
      debian/control
  3. 5 0
      debian/not-installed
  4. 1 1
      debian/rules

+ 2 - 0
debian/clevis.bash-completion

@@ -0,0 +1,2 @@
+
+usr/share/bash-completion/completions/clevis

+ 1 - 0
debian/control

@@ -6,6 +6,7 @@ Vcs-Browser: https://git.in-ulm.de/cbiedl/clevis
 Vcs-Git: https://git.in-ulm.de/cbiedl/clevis.git
 Vcs-Git: https://git.in-ulm.de/cbiedl/clevis.git
 Build-Depends: debhelper (>= 11~),
 Build-Depends: debhelper (>= 11~),
     asciidoctor,
     asciidoctor,
+    bash-completion,
     curl,
     curl,
     dracut (>= 047+31-1~),
     dracut (>= 047+31-1~),
     jose,
     jose,

+ 5 - 0
debian/not-installed

@@ -0,0 +1,5 @@
+
+# Appearently it's necessary to list the bash completion here
+# else dh_missing will complain. Don't worry, the completion file
+# still gets installed.
+usr/share/bash-completion/completions/clevis

+ 1 - 1
debian/rules

@@ -5,7 +5,7 @@ DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 include /usr/share/dpkg/buildflags.mk
 
 
 %:
 %:
-	dh $@
+	dh $@  --with=bash-completion
 
 
 override_dh_missing:
 override_dh_missing:
 	dh_missing --fail-missing
 	dh_missing --fail-missing