/etc/bash_completion.d/svn-buildpackage is in svn-buildpackage 0.8.6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # -*- shell-script -*-
# experimental svn-buildpackage bash completion
# author: Eddy Petrișor
# created by modification of Martin Pool's bzr.simple bash completion
# with inspiration from David Roundy's darcs completion script
have=$(type svn-buildpackage 2>/dev/null|| true )
_svnbp_commands()
{
svn-buildpackage --help | grep '^ --' | sed 's:^\s*\(--[-a-zA-Z]*\)\s.*$:\1:g'
}
_svnbp()
{
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
COMPREPLY=( $( compgen -W "$(_svnbp_commands)" | grep "^$cur") )
}
[ "$have" ] && complete -F _svnbp -o default svn-buildpackage
|