[devscripts] 04/11: add debsign bash_completion script
James McCoy
jamessan at debian.org
Fri Mar 13 03:40:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit f45a782b4650ca80a5051769e6ee573b812c9845
Author: Hideki Yamane <henrich at debian.org>
Date: Sun Jan 4 09:42:35 2015 +0900
add debsign bash_completion script
Signed-off-by: James McCoy <jamessan at debian.org>
---
scripts/debsign.bash_completion | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/scripts/debsign.bash_completion b/scripts/debsign.bash_completion
new file mode 100644
index 0000000..825c60a
--- /dev/null
+++ b/scripts/debsign.bash_completion
@@ -0,0 +1,30 @@
+have debsign &&
+_debsign()
+{
+ local cur prev options
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+ options='-r -p -m -e -k -S -a -t --multi -h --help -version \
+ --re-sign --no-re-sign --debs-dir --no-conf --noconf'
+
+ case $prev in
+ -k)
+ keyid_options=`gpg -K|grep ^sec|cut -d'/' -f2|cut -d' ' -f1`
+ COMPREPLY=( $( compgen -W "$keyid_options" | grep ^$cur ) )
+ ;;
+ *)
+ COMPREPLY=( $(
+ compgen -G "${cur}*.changes"
+ compgen -G "${cur}*.dsc"
+ compgen -G "${cur}*.commands"
+ compgen -W "$options" | grep "^$cur"
+ ) )
+ ;;
+ esac
+
+ return 0
+
+}
+[ "$have" ] && complete -F _debsign -o filenames debsign
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list