[med-svn] [SCM] bwa branch, master, updated. debian/0.6.1-1-14-g293285a
Charles Plessy
plessy at debian.org
Sat Dec 8 10:23:43 UTC 2012
The following commit has been merged in the master branch:
commit ad0730059737e8b2bce8162b27dd87d3ad613e69
Author: Charles Plessy <plessy at debian.org>
Date: Sat Dec 8 19:19:03 2012 +0900
Bash completion for BWA.
Also available at https://github.com/arq5x/bwa
diff --git a/debian/bash_completion/bwa b/debian/bash_completion/bwa
new file mode 100644
index 0000000..bc011bf
--- /dev/null
+++ b/debian/bash_completion/bwa
@@ -0,0 +1,20 @@
+_bwa()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="index aln samse sampe
+ bwasw fa2pac pac2bwt
+ pac2bwtgen bwtupdate
+ pac_rev bwt2sa pac2cspac
+ stdsw"
+
+ case $prev in
+ bwa)
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ ;;
+ esac
+ return 0
+}
+complete -F _bwa -o default bwa
diff --git a/debian/install b/debian/install
index 039db1a..1918bc3 100644
--- a/debian/install
+++ b/debian/install
@@ -3,3 +3,4 @@ bwa usr/bin
solid2fastq.pl usr/share/bwa
qualfa2fq.pl usr/share/bwa
xa2multi.pl usr/share/bwa
+debian/bash_completion/* etc/bash_completion.d
--
Burrows-Wheeler Aligner
More information about the debian-med-commit
mailing list