diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-09-22 08:57:40 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-09-22 10:11:32 +0200 |
commit | 386d3a7f340d51ec608631f3097f68506961446f (patch) | |
tree | af8a50d6ed7b6c44c9636e0a9be94f38d17a090c /debian | |
parent | d8a30df2be787e7352c5ab56948a8bdf04303cf2 (diff) |
Move bash completion from /etc to /usr/share
Diffstat (limited to 'debian')
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/git-buildpackage.postinst | 42 | ||||
-rw-r--r-- | debian/git-buildpackage.postrm | 43 | ||||
-rw-r--r-- | debian/git-buildpackage.preinst | 37 |
4 files changed, 123 insertions, 1 deletions
diff --git a/debian/control b/debian/control index 774e6f60..06410f18 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: vcs Priority: optional Maintainer: Guido Günther <agx@sigxcpu.org> Build-Depends: - bash-completion, + bash-completion (>= 1:2.1-4.2~), debhelper (>= 9~), dh-python, docbook-utils, diff --git a/debian/git-buildpackage.postinst b/debian/git-buildpackage.postinst new file mode 100644 index 00000000..390bcebb --- /dev/null +++ b/debian/git-buildpackage.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for git-buildpackage +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + dpkg-maintscript-helper rm_conffile \ + /etc/bash_completion.d/git-buildpackage 0.6.34~ git-buildpackage -- "$@" + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/git-buildpackage.postrm b/debian/git-buildpackage.postrm new file mode 100644 index 00000000..e7771265 --- /dev/null +++ b/debian/git-buildpackage.postrm @@ -0,0 +1,43 @@ +#!/bin/sh +# postrm script for libvirt-daemon-system +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postrm> `remove' +# * <postrm> `purge' +# * <old-postrm> `upgrade' <new-version> +# * <new-postrm> `failed-upgrade' <old-version> +# * <new-postrm> `abort-install' +# * <new-postrm> `abort-install' <old-version> +# * <new-postrm> `abort-upgrade' <old-version> +# * <disappearer's-postrm> `disappear' <overwriter> +# <overwriter-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + dpkg-maintscript-helper rm_conffile \ + /etc/bash_completion.d/git-buildpackage 0.6.34~ git-buildpackage -- "$@" + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/git-buildpackage.preinst b/debian/git-buildpackage.preinst new file mode 100644 index 00000000..6e0f06fc --- /dev/null +++ b/debian/git-buildpackage.preinst @@ -0,0 +1,37 @@ +#!/bin/sh +# preinst script for libvirt-daemon-system +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <new-preinst> `install' +# * <new-preinst> `install' <old-version> +# * <new-preinst> `upgrade' <old-version> +# * <old-preinst> `abort-upgrade' <new-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + dpkg-maintscript-helper rm_conffile \ + /etc/bash_completion.d/git-buildpackage 0.6.34~ git-buildpackage -- "$@" + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 |