[DRE-commits] [sup-mail] 01/02: Include Bash completion
Per Andersson
avtobiff at moszumanska.debian.org
Thu Oct 8 22:34:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
avtobiff pushed a commit to branch master
in repository sup-mail.
commit 3df0f40e9c8a91025b5ce21409cbc1c9c0b1beec
Author: Per Andersson <avtobiff at gmail.com>
Date: Fri Oct 9 00:14:08 2015 +0200
Include Bash completion
---
debian/changelog | 2 ++
...nized-sup-mail-command-in-Bash-completion.patch | 30 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 ++++-
4 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 31e5d5c..214dd6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ sup-mail (0.22.1-1) UNRELEASED; urgency=low
* New upstream release. (Closes: #796054, #789605, #766168, #764315)
* Added script for regenerating man pages from upstream.
* Removed obsolete patch for commenting out rubygems imports.
+ * Include Bash completions.
+ + Add patch to use Debianized sup(-mail) command in completion.
-- Per Andersson <avtobiff at debian.org> Wed, 07 Oct 2015 16:18:41 +0200
diff --git a/debian/patches/0001-Use-Debianized-sup-mail-command-in-Bash-completion.patch b/debian/patches/0001-Use-Debianized-sup-mail-command-in-Bash-completion.patch
new file mode 100644
index 0000000..ed7b697
--- /dev/null
+++ b/debian/patches/0001-Use-Debianized-sup-mail-command-in-Bash-completion.patch
@@ -0,0 +1,30 @@
+From: Per Andersson <avtobiff at gmail.com>
+Date: Thu, 8 Oct 2015 22:11:47 +0200
+Subject: Use Debianized sup(-mail) command in Bash completion
+
+---
+ contrib/completion/_sup.bash | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/completion/_sup.bash b/contrib/completion/_sup.bash
+index ae87560..fe52889 100644
+--- a/contrib/completion/_sup.bash
++++ b/contrib/completion/_sup.bash
+@@ -32,7 +32,7 @@ _sup_cmds() {
+ --abort-missing -a --atomic -t --dry-run -n --version --help
+ -h"
+ ;;
+- sup)
++ sup-mail)
+ opts="--list-hooks -l --no-threads -n --no-initial-poll -o --search
+ -s --compose -c --subject -j --version -v --help -h"
+
+@@ -90,7 +90,7 @@ _sup_cmds() {
+ return 0
+ }
+
+-complete -F _sup_cmds sup \
++complete -F _sup_cmds sup-mail \
+ sup-add \
+ sup-config \
+ sup-dump \
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..777fe35
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Use-Debianized-sup-mail-command-in-Bash-completion.patch
diff --git a/debian/rules b/debian/rules
index a1ae51e..4840c01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,5 +18,9 @@ override_dh_install:
dh_install
# rename sup binary to sup-mail
mv debian/sup-mail/usr/bin/sup debian/sup-mail/usr/bin/sup-mail
+ # install bash completion
+ install -m 0644 -D contrib/completion/_sup.bash \
+ debian/sup-mail/usr/share/bash-completion/completions/sup
# install zsh completion
- install -m 0644 -D contrib/completion/_sup.zsh debian/sup-mail/usr/share/zsh/functions/Completion/Unix/_sup
+ install -m 0644 -D contrib/completion/_sup.zsh \
+ debian/sup-mail/usr/share/zsh/functions/Completion/Unix/_sup
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/sup-mail.git
More information about the Pkg-ruby-extras-commits
mailing list