mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
32 lines
836 B
Plaintext
32 lines
836 B
Plaintext
|
# Debian GNU/Linux cowbuilder(1) completion
|
||
|
# Copyright 2007 Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
|
||
|
#
|
||
|
# This script can be distributed under the same license as the
|
||
|
# cowdancer or bash packages.
|
||
|
#
|
||
|
# adapted to pbuilder, the license is GPLv2 or later.
|
||
|
# Copyright 2007 Junichi Uekawa <dancer@debian.org>
|
||
|
|
||
|
have pbuilder-dist &&
|
||
|
_pbuilder-dist()
|
||
|
{
|
||
|
local cur prev options
|
||
|
|
||
|
COMPREPLY=()
|
||
|
cur=${COMP_WORDS[COMP_CWORD]}
|
||
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||
|
options='create update build login execute dumpconfig'
|
||
|
|
||
|
case $prev in
|
||
|
build)
|
||
|
COMPREPLY=( $( compgen -o filenames -G "$cur*.dsc" ) )
|
||
|
;;
|
||
|
*)
|
||
|
COMPREPLY=( $( compgen -W "$options" | grep "^$cur" ) )
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
return 0
|
||
|
}
|
||
|
[ "$have" ] && complete -F _pbuilder-dist -o filenames pbuilder-dist
|