aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-05-25 01:36:16 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-05-25 01:43:33 +0100
commit2b8dd42775a9984f6685fc40b476fdad685eb0ca (patch)
treea7accf0e0287f83886d7fd22399a932bf0755921
parent5c3855f9413d7aa10fca09c0a903de1809004a59 (diff)
downloadtransmission-remote-cli-2b8dd42775a9984f6685fc40b476fdad685eb0ca.tar.gz
Add support for bash completion file
-rw-r--r--debian/changelog1
-rw-r--r--debian/control2
-rw-r--r--debian/patches/bash-completion-debian-rename.patch20
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules2
5 files changed, 24 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 733bcaa..20d04a3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ transmission-remote-cli (1.3-1) UNRELEASED; urgency=low
* New upstream release
- Add support for Transmission 2.52
+ - Add bash completion file
* Bump debhelper to v9
-- Jonathan McCrohan <jmccrohan@gmail.com> Thu, 24 May 2012 00:46:03 +0100
diff --git a/debian/control b/debian/control
index 80251a8..f81207f 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: transmission-remote-cli
Section: net
Priority: optional
Maintainer: Jonathan McCrohan <jmccrohan@gmail.com>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), bash-completion
Standards-Version: 3.9.3
Homepage: https://github.com/fagga/transmission-remote-cli
diff --git a/debian/patches/bash-completion-debian-rename.patch b/debian/patches/bash-completion-debian-rename.patch
new file mode 100644
index 0000000..6bdd589
--- /dev/null
+++ b/debian/patches/bash-completion-debian-rename.patch
@@ -0,0 +1,20 @@
+Description: Rename Bash completion function to conform to Debian name
+Author: Jonathan McCrohan <jmccrohan@gmail.com>
+Date: Fri May 25 01:33:32 IST 2012
+---
+--- transmission-remote-cli-1.3.orig/transmission-remote-cli-bash-completion.sh
++++ transmission-remote-cli-1.3/transmission-remote-cli-bash-completion.sh
+@@ -1,6 +1,6 @@
+ #!/bin/bash
+
+-_transmission-remote-cli.py () {
++_transmission-remote-cli () {
+ local cur prev opts
+
+ _get_comp_words_by_ref cur prev
+@@ -14,4 +14,4 @@ _transmission-remote-cli.py () {
+ fi
+ }
+
+-complete -F _transmission-remote-cli.py transmission-remote-cli.py
++complete -F _transmission-remote-cli transmission-remote-cli
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f71ba2f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+bash-completion-debian-rename.patch
diff --git a/debian/rules b/debian/rules
index 7bc28e4..edae779 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,4 +13,4 @@ override_dh_installchangelogs:
dh_installchangelogs -k NEWS
%:
- dh $@
+ dh $@ --with bash-completion