From 2b8dd42775a9984f6685fc40b476fdad685eb0ca Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Fri, 25 May 2012 01:36:16 +0100 Subject: Add support for bash completion file --- debian/changelog | 1 + debian/control | 2 +- debian/patches/bash-completion-debian-rename.patch | 20 ++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 2 +- 5 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 debian/patches/bash-completion-debian-rename.patch create mode 100644 debian/patches/series (limited to 'debian') 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 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 -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 +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 -- cgit v1.2.3