aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control3
-rw-r--r--debian/git-buildpackage.bash-completion15
-rwxr-xr-xdebian/rules3
3 files changed, 20 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index 6eb4056a..c5c5964d 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Section: vcs
Priority: optional
Maintainer: Guido G√ľnther <agx@sigxcpu.org>
Build-Depends: cdbs, debhelper (>= 5), python-dev, python-support (>= 0.3),
- pychecker, gtk-doc-tools, sgml2x, docbook-utils, jade, python-dateutil, python-nose
+ pychecker, gtk-doc-tools, sgml2x, docbook-utils, jade, python-dateutil, python-nose,
+ bash-completion
Standards-Version: 3.8.3
Vcs-Git: git://honk.sigxcpu.org/git/git-buildpackage.git
Vcs-Browser: http://git.debian.org/?p=users/agx/git-buildpackage.git
diff --git a/debian/git-buildpackage.bash-completion b/debian/git-buildpackage.bash-completion
new file mode 100644
index 00000000..9e3023e0
--- /dev/null
+++ b/debian/git-buildpackage.bash-completion
@@ -0,0 +1,15 @@
+# -*- shell-script -*-
+#
+# Bash tab auto-completion rules for git-buildpackage.
+# Put this file in /etc/bash_completion.d/ and bash will automatically load it.
+#
+# By Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com>
+
+have git-buildpackage &&
+_git_buildpackage()
+{
+ local options=$(git-buildpackage --help | egrep -o '^ +\-\-[a-z\-]+=?')
+ local cur=${COMP_WORDS[COMP_CWORD]}
+ COMPREPLY=($(compgen -W "$options" -- $cur))
+}
+[ "${have:-}" ] && complete -F _git_buildpackage -o default git-buildpackage
diff --git a/debian/rules b/debian/rules
index 75b760ef..d4cf95f3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,6 +51,9 @@ $(VERSION_ENT): debian/changelog
build/git-buildpackage:: $(MANPAGES) $(MANUAL) $(GBP_VERSION) checks
+binary-post-install/git-buildpackage::
+ dh_bash-completion
+
clean::
-rm git-*.py gbp-*.py
-rm docs/*.1 docs/manpage.* $(VERSION_ENT)