ubuntu-dev-tools/pbuilder-dist.bash_completion
Stephan Hermann 519d99d407 * pbuilder-dist:
- check if $SYSCACHE is not set and stay with the default, if 
      SYSCACHE = 0 use the default from pbuilderrc or honor $DEBCACHE
      (LP: #156183)
    - removed $BINARCH check in pbuilder call, and set --debootstrapopts
      directly, it doesn't matter when it's always set.  The Subshell call
      didn't work  (LP: #175183)
    - added support for --http-proxy, honours now $http_proxy or $HTTP_PROXY
    - removed $COMPONENTS_LINE from pbuilder call, data is crippled in the
      pbuilder chroot.
      Instead of this behaviour add $BASE_DIR/etc/$DISTRIBUTION/apt.conf/
      directory and install a sane sources.list, depending on the releases of Ubuntu
      and add --aptconfdir to pbuilder call (LP: #175183)
    - add support for gksudo|kdesudo|sudo depending on $DESKTOP_SESSION.
      (LP: #172943)
  * pbuilder-dist.bash_completion: (LP: #175728)
    - added bash_completion instructions
  * debian/rules:
    - install pbuilder-dist.bash_completion to /etc/bash_completion.d/
2008-01-22 18:35:56 +01:00

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