Package: devscripts Severity: wishlist Tags: patch Hi,
I've made bash completion script for debsign as attached patch. Could you check and apply it to your package, please? -- Regards, Hideki Yamane henrich @ debian.or.jp/org http://wiki.debian.org/HidekiYamane
>From 458c9b942dafad856a3d3e76982c234d7d88f327 Mon Sep 17 00:00:00 2001 From: Hideki Yamane <[email protected]> Date: Sun, 4 Jan 2015 09:42:35 +0900 Subject: [PATCH] add debsign bash_completion script --- scripts/debsign.bash_completion | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 scripts/debsign.bash_completion diff --git a/scripts/debsign.bash_completion b/scripts/debsign.bash_completion new file mode 100644 index 0000000..7a1ea4f --- /dev/null +++ b/scripts/debsign.bash_completion @@ -0,0 +1,32 @@ +have debsign && +_debsign() +{ + local cur prev options paroptions + + 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' + + paroptions="$options" + + 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 "$paroptions" | grep "^$cur" + ) ) + ;; + esac + + return 0 + +} +[ "$have" ] && complete -F _debsign -o filenames debsign -- 2.1.4
pgp4FGPZsNHh8.pgp
Description: PGP signature
_______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
