This is an automated email from the git hooks/post-receive script.

uecker-guest pushed a commit to branch master
in repository bart.

commit 821be30c1d43cbbf6d82db2e458b65faa6cbfe90
Author: Martin Uecker <[email protected]>
Date:   Sun Jan 10 11:18:55 2016 +0100

    bash completion: use upstream script and change install location
---
 debian/bart.install       |  2 +-
 debian/bart_completion.sh | 43 -------------------------------------------
 2 files changed, 1 insertion(+), 44 deletions(-)

diff --git a/debian/bart.install b/debian/bart.install
index a7db4cb..24e3a32 100644
--- a/debian/bart.install
+++ b/debian/bart.install
@@ -1,2 +1,2 @@
 /usr
-debian/bart_completion.sh      /etc/bash_completion.d
+scripts/bart_completion.sh     /usr/share/bash-completion/completions/
diff --git a/debian/bart_completion.sh b/debian/bart_completion.sh
deleted file mode 100644
index 4dcd007..0000000
--- a/debian/bart_completion.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-# bart parameter-completion
-
-
-
-function _bart()
-{
-       local cur=${COMP_WORDS[$COMP_CWORD]}
-
-       if [ $COMP_CWORD -eq 1 ] ; then
-
-               local CMDS=$(bart | tail -n +2)
-               COMPREPLY=($(compgen -W "$CMDS" -- "$cur"));
-
-       else
-
-               local bcmd=${COMP_WORDS[1]}
-
-               case $cur in
-               -*)
-                       COMPREPLY=($(bart ${bcmd} -h | grep -o -E "^${cur}\w*"))
-                       ;;
-               *)
-                       case $bcmd in
-                       twixread)
-                               COMPREPLY=($(compgen -o plusdirs -f -X '!*.dat' 
-- ${cur}))
-                               ;;
-                       *)
-                               local CFLS=$(compgen -o plusdirs -f -X '!*.hdr' 
-- ${cur})
-                               local COOS=$(compgen -o plusdirs -f -X '!*.coo' 
-- ${cur});
-                               local suffix=".hdr"
-                               COMPREPLY=($(for i in ${CFLS} ${COOS}; do echo 
${i%$suffix} ; done))
-                               ;;
-                       esac
-
-                       ;;
-               esac
-       fi
-
-       return 0
-}
-
-complete -o filenames -F _bart bart ./bart
-

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/debian-med/bart.git

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to